Commit f25fd756 authored by Slawomir Mrozowicz's avatar Slawomir Mrozowicz Committed by Yongqiang Liu
Browse files

ixgbe: add the ability for the PF to disable VF link state

mainline inclusion
from mainline-v5.18-rc1
commit 366fd100
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I532H9


CVE: CVE-2021-33061

--------------------------------

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: default avatarSlawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Tested-by: default avatarKonrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>

Conflicts:
	drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h
	drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c

Signed-off-by: default avatarZiyang Xuan <william.xuanziyang@huawei.com>
Reviewed-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 42dc8522
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment