Skip to content
Snippets Groups Projects
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 366fd1000995d4cf64e1a61a0d78a051550b9841
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
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment