be2net: fix EQ from getting full while cleaning RX CQ
authorSathya Perla <sathya.perla@emulex.com>
Wed, 8 May 2013 02:05:49 +0000 (02:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2013 18:59:48 +0000 (11:59 -0700)
commit3f5dffe61a2ed3bd5e02bce16488937d4a5e7c27
treeb8921ec16c01c4c76dd73d775d9fc05fd8f41ddb
parentbf591f51a53a589ee97b862881f4f07ed819fcbd
be2net: fix EQ from getting full while cleaning RX CQ

While cleaning RX queues, the CQ DB may be rung several times (with rearm)
while waiting for the flush compl. Each CQ-notify with rearm can result in
an event. The EQ may get full resulting in a HW error.

Fix this by not re-arming the CQ while notifying a valid completion.
Also, there's no need to wait for 1ms after destroying RXQ, as the code in
be_rx_cq_clean() waits for the flush compl to arrive.

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