be2net: fix be_close() to ensure all events are ack'ed
authorSathya Perla <sathya.perla@emulex.com>
Mon, 17 Dec 2012 19:38:50 +0000 (19:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2012 00:18:39 +0000 (16:18 -0800)
commita323d9bf835e27d5e72eae86b5a41747d98bd9d2
tree19595d569e8cae90ff3aae47a9a045869e0ddc35
parentc39ba1c2bdc3f97839d9b9e6bf9ffd5c754b7f95
be2net: fix be_close() to ensure all events are ack'ed

In be_close(), be_eq_clean() must be called after all RX/TX/MCC queues
have been cleaned to ensure that any events caused while cleaning up
completions are notified/acked. Not clearing all events can cause
upredictable behaviour when RX rings are re-created in the subsequent
be_open().

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