]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
i40e: don't disable PF LB when disabling VFs
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 24 Feb 2015 06:58:43 +0000 (06:58 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 3 Mar 2015 09:07:25 +0000 (01:07 -0800)
Since we now have functionality to enable and disable PF loopback at
runtime, don't try to do it automatically. Removing this call also gets
rid of a bogus error message when removing the PF module with VFs
enabled.

Change-ID: Ic38652d8a3b9498d96113bfaa5ea7bad050862e9
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

index 493335caa27600b806c8d02a5ce52b52e66661f6..910c45e83fddf6ca6e60f254c809c8964277eb7e 100644 (file)
@@ -832,7 +832,6 @@ void i40e_free_vfs(struct i40e_pf *pf)
                        bit_idx = (hw->func_caps.vf_base_id + vf_id) % 32;
                        wr32(hw, I40E_GLGEN_VFLRSTAT(reg_idx), (1 << bit_idx));
                }
-               i40e_disable_pf_switch_lb(pf);
        } else {
                dev_warn(&pf->pdev->dev,
                         "unable to disable SR-IOV because VFs are assigned.\n");