bnx2x: Fix UNDI driver unload
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Thu, 8 May 2014 09:34:31 +0000 (12:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 May 2014 20:01:46 +0000 (16:01 -0400)
commitde682941eef3e5f6d1b653a6c214bc8a288f17c1
tree36de3eeacf9411ef5aebb097d562416361bebb1f
parent27653053be95681a0e87df90c9fbe9d1c16a3e81
bnx2x: Fix UNDI driver unload

Commit 91ebb928b "bnx2x: Add support for Multi-Function UNDI" contains a bug
which prevent the emptying of the device's Rx buffers before reset.
As a result, on new boards it is likely HW will reach some fatal assertion
once its interfaces load after UNDI was previously loaded.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c