i40e: disable double vlan by default
authorHelin Zhang <helin.zhang@intel.com>
Tue, 24 Jun 2014 02:02:37 +0000 (10:02 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Jun 2014 11:05:21 +0000 (13:05 +0200)
Double vlan should be specifically disabled by default during
port initialization which is expected.

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
lib/librte_pmd_i40e/i40e_ethdev.c

index 0d7be44..204d2cb 100644 (file)
@@ -482,6 +482,10 @@ eth_i40e_dev_init(__rte_unused struct eth_driver *eth_drv,
        }
 
        vsi = pf->main_vsi;
+
+       /* Disable double vlan by default */
+       i40e_vsi_config_double_vlan(vsi, FALSE);
+
        if (!vsi->max_macaddrs)
                len = ETHER_ADDR_LEN;
        else