aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2013-11-28 01:39:34 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-01-05 23:59:01 -0500
commit6c12fcbf18cbbbd075908b3cef7dc19e184a3ee1 (patch)
treea907224deb44ef46ee19900332a0faa3db14465c /drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h
parent298deef1f439b31af8c2a63dda6211b2dbf2f51a (diff)
i40e: Fix SR-IOV VF port VLAN
This patch fixes two different problems. 1) The port VLAN configuration was not persistent across VF driver loads and unloads. 2) The port VLAN configuration was only correct the first time it was set. Switching the port VLAN on and off would cause subsequent VLAN configurations to be corrupted in the VSI. Ensure that the correct bits are being set for the VSI port VLAN configuration. Change-Id: I7ebf5329f77eb8d73ccd3324eb346b3abeea737d Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h
index d0b712c4bef3..bf3384f0abcb 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h
+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h
@@ -82,6 +82,7 @@ struct i40e_vf {
82 82
83 struct i40e_virtchnl_ether_addr default_lan_addr; 83 struct i40e_virtchnl_ether_addr default_lan_addr;
84 struct i40e_virtchnl_ether_addr default_fcoe_addr; 84 struct i40e_virtchnl_ether_addr default_fcoe_addr;
85 u16 port_vlan_id;
85 86
86 /* VSI indices - actual VSI pointers are maintained in the PF structure 87 /* VSI indices - actual VSI pointers are maintained in the PF structure
87 * When assigned, these will be non-zero, because VSI 0 is always 88 * When assigned, these will be non-zero, because VSI 0 is always