From: Akeem G Abodunrin Date: Thu, 13 Feb 2014 11:48:43 +0000 (-0800) Subject: i40e: Setting i40e_down bit for tx_timeout X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e108b0e341ec835df19dd3433b883b0abc509ed8;p=openwrt%2Fstaging%2Fblogic.git i40e: Setting i40e_down bit for tx_timeout If tx_timeout recovery failed, then it becomes necessary to set i40e_down bit before actually shutdown the connection. Change-ID: Iaac81df0e302116571827aa0cff450697fbb7fa3 Signed-off-by: Akeem G Abodunrin Signed-off-by: Jesse Brandeburg Tested-by: Kavindya Deegala Signed-off-by: Aaron Brown Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index f596f74cae4a..8e444114bfc7 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -305,6 +305,7 @@ static void i40e_tx_timeout(struct net_device *netdev) break; default: netdev_err(netdev, "tx_timeout recovery unsuccessful\n"); + set_bit(__I40E_DOWN, &vsi->state); i40e_down(vsi); break; }