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)
commit9f52b564b7162ede5a73a4f4b421ccf93c55b025
tree1bc5a044492c5e8bf76115ebddb34fd85b6b52d7
parent74bf4ba3d367aacbc04fef167289767f162cd730
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