bnx2x: Changing the Disabled state to a flag
authorEilon Greenstein <eilong@broadcom.com>
Thu, 15 Oct 2009 07:18:08 +0000 (00:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Oct 2009 07:18:08 +0000 (00:18 -0700)
commitf34d28ea0174df63253dc20a95de0b48e3d8145a
treef3a1617b224b1305f6090ed05c33e16c136d8eb7
parent52a7a12fb560f22dd093ca74f3a768d51b044a40
bnx2x: Changing the Disabled state to a flag

When working with DCC, a function can be disabled or enabled (virtual link down
or up). Using the function state introduced some race conditions with the
load/unload flow.
Using a separate flag to indicate that the function is disabled.

Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x.h
drivers/net/bnx2x_main.c