be2net: post buffers before destroying RXQs in Lancer
authorKalesh AP <kalesh.purayil@avagotech.com>
Wed, 5 Aug 2015 07:27:49 +0000 (03:27 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 18:53:05 +0000 (11:53 -0700)
commit99b44304f205a826501721d41928e87b0b9cf3b3
tree9f95a93aa75e7e63aa375f6d1020fa8947c5331b
parentbcc84140a62c04f522eacceb793e6eef92965c84
be2net: post buffers before destroying RXQs in Lancer

An RX stall issue was seen on Lancer adapters, when RXQs are destroyed
while they are in an "out of buffer" state. This patch fixes this issue
by posting 64 buffers to each RXQ before destroying them in the close path.
This is done after ensuring that no more new packets are selected for
transfer to the RXQs by disabling interface filters.

Signed-off-by: Kalesh AP <kalesh.purayil@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c