aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorTony Nguyen <anthony.l.nguyen@intel.com>2019-04-16 13:21:15 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-05-04 16:45:00 -0400
commite80e76db6c5bbc7a8f8512f3dc630a2170745b0b (patch)
tree280cba89fb4059844b1102750847bf2d5d052d2d /drivers/net/ethernet/intel/ice/ice_lib.c
parenta52db6b2601f9904ce7fc4b32537823e5c1eb9ef (diff)
ice: Preserve VLAN Rx stripping settings
When Tx insertion is set, we are not accounting for the state of Rx stripping. This causes Rx stripping to be enabled any time Tx insertion is changed, even when it's supposed to be disabled. Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c
index bda6ade755c3..947730d74612 100644
--- a/drivers/net/ethernet/intel/ice/ice_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_lib.c
@@ -1932,6 +1932,10 @@ int ice_vsi_manage_vlan_insertion(struct ice_vsi *vsi)
1932 */ 1932 */
1933 ctxt->info.vlan_flags = ICE_AQ_VSI_VLAN_MODE_ALL; 1933 ctxt->info.vlan_flags = ICE_AQ_VSI_VLAN_MODE_ALL;
1934 1934
1935 /* Preserve existing VLAN strip setting */
1936 ctxt->info.vlan_flags |= (vsi->info.vlan_flags &
1937 ICE_AQ_VSI_VLAN_EMOD_M);
1938
1935 ctxt->info.valid_sections = cpu_to_le16(ICE_AQ_VSI_PROP_VLAN_VALID); 1939 ctxt->info.valid_sections = cpu_to_le16(ICE_AQ_VSI_PROP_VLAN_VALID);
1936 1940
1937 status = ice_update_vsi(hw, vsi->idx, ctxt, NULL); 1941 status = ice_update_vsi(hw, vsi->idx, ctxt, NULL);