i40e: Enable/Disable PF switch LB on SR-IOV configure changes
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 13 Dec 2013 08:38:38 +0000 (08:38 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 8 Jan 2014 05:50:07 +0000 (21:50 -0800)
commitc354229fc0f2c441aad7506dc4748cc9e9675767
tree6e8e1579682e0e969da4a2cb481e32c829959e7e
parent922680b98274cc815c5663f2eb1ca9ffcaa04a95
i40e: Enable/Disable PF switch LB on SR-IOV configure changes

The PF VSI was never updated to enable or disable internal switch loopback
when VFs were created or destroyed via the sysfs interface.  Add some
helper functions to take care of that.

Signed-off-by: Greg Rose <gregory.v.rose@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