aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_fcoe.c
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2010-11-16 22:27:13 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2010-11-16 22:27:13 -0500
commita41c059741570779c0254a3a1aa4da3baa463d7c (patch)
tree5894b94633fc3e99b1a22756c33aba6da8eb2889 /drivers/net/ixgbe/ixgbe_fcoe.c
parentc84d324c770dc81acebc1042163da33c8ded2364 (diff)
ixgbe: avoid doing FCoE DDP when adapter is DOWN or RESETTING
There is no point to allow incoming DDP requests from the upper layer stack if the adapter is going down or being reset. Signed-off-by: Yi Zou <yi.zou@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_fcoe.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_fcoe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_fcoe.c b/drivers/net/ixgbe/ixgbe_fcoe.c
index 05efa6a8ce8e..07346b8ebb04 100644
--- a/drivers/net/ixgbe/ixgbe_fcoe.c
+++ b/drivers/net/ixgbe/ixgbe_fcoe.c
@@ -168,6 +168,11 @@ int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid,
168 return 0; 168 return 0;
169 } 169 }
170 170
171 /* no DDP if we are already down or resetting */
172 if (test_bit(__IXGBE_DOWN, &adapter->state) ||
173 test_bit(__IXGBE_RESETTING, &adapter->state))
174 return 0;
175
171 fcoe = &adapter->fcoe; 176 fcoe = &adapter->fcoe;
172 if (!fcoe->pool) { 177 if (!fcoe->pool) {
173 e_warn(drv, "xid=0x%x no ddp pool for fcoe\n", xid); 178 e_warn(drv, "xid=0x%x no ddp pool for fcoe\n", xid);