bnx2x: Broken self-test in SF mode on 578xx
authorVladislav Zolotarov <vladz@broadcom.com>
Thu, 21 Jul 2011 07:58:54 +0000 (07:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jul 2011 19:33:56 +0000 (12:33 -0700)
This patch fixes both the failure in the self-test on 578xx
and a hole in a parity recovery flow that this failure
has discovered:
 - internal 'pending' state in a VLAN_MAC object wasn't been cleared
when the object state change was called with DRV_ONLY flag, which in
particular happens when a parity error happens during the self-test.
 - bp->sp_state wasn't cleared in the similar circumstances as described
above.

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found