i40e: don't allow changes to HW VLAN stripping on active port VLANs
authorNicholas Nunley <nicholas.d.nunley@intel.com>
Wed, 6 Feb 2019 23:08:17 +0000 (15:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:48:23 +0000 (06:48 -0700)
commitf64615a8573059ad5c0602266a8b8c9f7ecaff02
tree3e8fce9762402f152aa6089b536851b7563bca39
parentfad8d76deeac5a29041e91f805186e0875624eaf
i40e: don't allow changes to HW VLAN stripping on active port VLANs

[ Upstream commit bfb0ebed53857cfc57f11c63fa3689940d71c1c8 ]

Modifying the VLAN stripping options when a port VLAN is configured
will break traffic for the VSI, and conceptually doesn't make sense,
so don't allow this.

Signed-off-by: Nicholas Nunley <nicholas.d.nunley@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_main.c