]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: add the ability for the PF to disable VF link state
authorSlawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Tue, 1 Mar 2022 11:40:08 +0000 (11:40 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 8 Mar 2022 15:41:18 +0000 (07:41 -0800)
commit1bf45cbbad41770c395de3123817bdeefbca334f
tree7a718bb1b3438384f263e4e5ebc633ef83962954
parent551caf81ea6641668ffd328f18640544667f2d7e
ixgbe: add the ability for the PF to disable VF link state

Add support for ndo_set_vf_link_state the Network Device Option that
allows the PF driver to control the virtual link state of the VF devices.
Without this change a VF cannot be disabled/enabled by the administrator.
In the implementation the auto state takes over PF link state to
VF link setting, the enable state is not supported, the disable state
shut off the VF link regardless of the PF setting.

Signed-off-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h