mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 12:04:46 +08:00
i40e: Warn when setting link-down-on-close while in MFP
This patch adds a warning message when the link-down-on-close flag is setting on. The warning is printed only on MFP devices Signed-off-by: Paweł Jabłoński <pawel.jablonski@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
1fa51a650e
commit
17b4d25c12
@ -4479,6 +4479,12 @@ flags_complete:
|
||||
}
|
||||
}
|
||||
|
||||
if ((changed_flags & pf->flags &
|
||||
I40E_FLAG_LINK_DOWN_ON_CLOSE_ENABLED) &&
|
||||
(pf->flags & I40E_FLAG_MFP_ENABLED))
|
||||
dev_warn(&pf->pdev->dev,
|
||||
"Turning on link-down-on-close flag may affect other partitions\n");
|
||||
|
||||
if (changed_flags & I40E_FLAG_DISABLE_FW_LLDP) {
|
||||
if (pf->flags & I40E_FLAG_DISABLE_FW_LLDP) {
|
||||
struct i40e_dcbx_config *dcbcfg;
|
||||
|
Loading…
Reference in New Issue
Block a user