]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i40e: Re enable Main VSI loopback setting in the reset path
authorAnjali Singhai Jain <anjali.singhai@intel.com>
Thu, 13 Nov 2014 03:06:15 +0000 (03:06 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 6 Dec 2014 12:33:04 +0000 (04:33 -0800)
There is an order in which this should happen. It turns out that FW will
not let you change the Loopback setting of the VSI with update VSI prior
to the VEB creation.

Change-ID: I7614ddff8b4c37702930c02f16f8c346aaa64bd1
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index 9aa2491ba7adc6890abec8ffa0d867b86ba7f575..b38aa7a7021f565b88f6ef3e6da1b06925c15e10 100644 (file)
@@ -5888,6 +5888,9 @@ static int i40e_reconstitute_veb(struct i40e_veb *veb)
        if (ret)
                goto end_reconstitute;
 
+       /* Enable LB mode for the main VSI now that it is on a VEB */
+       i40e_enable_pf_switch_lb(pf);
+
        /* create the remaining VSIs attached to this VEB */
        for (v = 0; v < pf->num_alloc_vsi; v++) {
                if (!pf->vsi[v] || pf->vsi[v] == ctl_vsi)