提交 4ff6d049 编写于 作者: M Maciej Fijalkowski 提交者: Zheng Zengkai

ice: do not setup vlan for loopback VSI

stable inclusion
from stable-v5.10.135
commit 160f79561e8746d69023a1cad6c80ebaf6be81f7
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5ZWFM

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=160f79561e8746d69023a1cad6c80ebaf6be81f7

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

commit cc019545 upstream.

Currently loopback test is failiing due to the error returned from
ice_vsi_vlan_setup(). Skip calling it when preparing loopback VSI.

Fixes: 0e674aeb ("ice: Add handler for ethtool selftest")
Signed-off-by: NMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: NGeorge Kuruvinakunnel <george.kuruvinakunnel@intel.com>
Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
上级 5d776bcb
...@@ -5203,10 +5203,12 @@ int ice_vsi_cfg(struct ice_vsi *vsi) ...@@ -5203,10 +5203,12 @@ int ice_vsi_cfg(struct ice_vsi *vsi)
if (vsi->netdev) { if (vsi->netdev) {
ice_set_rx_mode(vsi->netdev); ice_set_rx_mode(vsi->netdev);
err = ice_vsi_vlan_setup(vsi); if (vsi->type != ICE_VSI_LB) {
err = ice_vsi_vlan_setup(vsi);
if (err) if (err)
return err; return err;
}
} }
ice_vsi_cfg_dcb_rings(vsi); ice_vsi_cfg_dcb_rings(vsi);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册