i40e: fix panic due to too-early Tx queue enable
authorJesse Brandeburg <[email protected]>
Tue, 12 Aug 2014 06:33:14 +0000 (06:33 +0000)
committerJeff Kirsher <[email protected]>
Thu, 4 Sep 2014 08:38:31 +0000 (01:38 -0700)
This fixes the panic under traffic load when resetting.  This issue
could also show up if/whenever there is a Tx-timeout.

Change-ID: Ie393a1f17fd5d962e56fc3bfe784899ef25402f5
Signed-off-by: Jesse Brandeburg <[email protected]>
Signed-off-by: Mitch Williams <[email protected]>
Tested-by: Jim Young <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/i40e/i40e_main.c

index 64b8683fda1e96081a665e0b7b0254345f2abcee..4071b4e551ccc086ead84e05ec5b114f6252d89e 100644 (file)
@@ -5289,7 +5289,7 @@ static void i40e_fdir_reinit_subtask(struct i40e_pf *pf)
  **/
 static void i40e_vsi_link_event(struct i40e_vsi *vsi, bool link_up)
 {
-       if (!vsi)
+       if (!vsi || test_bit(__I40E_DOWN, &vsi->state))
                return;
 
        switch (vsi->type) {