]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2: Check netif_running() in all ethtool operations.
authorMichael Chan <mchan@broadcom.com>
Thu, 9 Oct 2008 19:21:46 +0000 (12:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 19:21:46 +0000 (12:21 -0700)
commit2d3fe522120d20a37781a92a5dc0330dde1bfddf
tree1bc5a044492c5e8bf76115ebddb34fd85b6b52d7
parent92f4caa59354c7cadaa8b94df4e48f191ec52727
bnx2: Check netif_running() in all ethtool operations.

We need to check netif_running() state in most ethtool operations
and properly handle the !netif_running() state where the chip is
in an uninitailzed state or low power state that may not accept
any MMIO.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c