linux/drivers/net/ethernet/emulex/benet
Sathya Perla d23e946cb6 be2net: fix wrong frag_idx reported by RX CQ
The RX CQ can report completions with invalid frag_idx when the RXQ that
was *previously* using it, was not cleaned up properly. This hits
a BUG_ON() in be2net.

When completion coalescing is enabled on a CQ, an explicit CQ-notify
(with rearm) is needed for each compl, to flush partially coalesced CQ
entries that are pending DMA.

In be_close(), this fix now notifies CQ for each compl, waits explicitly
for the flush compl to arrive and complains if it doesn't arrive.

Also renaming be_crit_error() to be_hw_error() as it's the more
appropriate name and to convey that we don't wait for the flush compl
only when a HW error has occurred.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-12-18 16:18:39 -08:00
..
be_cmds.c be2net: fix be_close() to ensure all events are ack'ed 2012-12-18 16:18:39 -08:00
be_cmds.h be2net: fix wrong usage of adapter->generation 2012-11-07 16:59:52 -05:00
be_ethtool.c be2net: Fix ethtool get_settings output for VF 2012-10-21 22:15:36 -04:00
be_hw.h be2net: fix access to SEMAPHORE reg 2012-11-07 16:59:52 -05:00
be_main.c be2net: fix wrong frag_idx reported by RX CQ 2012-12-18 16:18:39 -08:00
be_roce.c be2net: remove roce on lancer 2012-11-07 16:59:52 -05:00
be_roce.h be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00
be.h be2net: fix wrong frag_idx reported by RX CQ 2012-12-18 16:18:39 -08:00
Kconfig net: Remove bogus dependencies on INET 2012-11-19 19:13:59 -05:00
Makefile be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00