]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i40e: Reset the VF upon conflicting VLAN configuration
authorGreg Rose <gregory.v.rose@intel.com>
Thu, 6 Mar 2014 09:02:28 +0000 (09:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 22 Apr 2014 03:43:33 +0000 (20:43 -0700)
commitf9b4b6278d51ff2870d7853a5f4e2bbd05f44dcb
tree2ef202703ed28f6a300a597784bd32a8ef61b822
parent0b3aec852b40d47315956487a902cfb513d8c482
i40e: Reset the VF upon conflicting VLAN configuration

If a host VMM administrator hoses his VF by assigning a port VLAN after
it is already up and running with implicit permission to set local
VLANs then we print a message warning the host administrator that the
VF driver needs to be reloaded.

In addition we need to knock the VF offline so that it does not continue
to receive traffic not on the port VLAN assigned to it.  So we reset the
VF.  The VF will cease operation and the administrator will be forced to
unload and reload the VF driver to make it work again.

Change-ID: Iae1ae006b244e74e30a4ee546b3c5fca5cfb40aa
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c