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)
commit7961689586d30a34c10b18ac95ba1cd72cefe725
treed80e394e9b5ca9b8835183a109060eda191e2be5
parent8736c82650500222c031dd7f59f0126e59808e36
bnx2x: Broken self-test in SF mode on 578xx

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>
drivers/net/bnx2x/bnx2x_cmn.c
drivers/net/bnx2x/bnx2x_reg.h
drivers/net/bnx2x/bnx2x_sp.c