net/ice/base: don't set VLAN mode in DCF mode
PATCH 1/1 net/ice/base: don't set VLAN mode in DCF mode
The PF will set the VLAN mode globally, DCF just needs to get the VLAN mode.
--- drivers/net/ice/base/ice_vlan_mode.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/net/ice/base/ice_vlan_mode.c +6 -0
@@ -354,6 +354,12 @@ static enum ice_status ice_set_svm(struct ice_hw *hw)*/ enum ice_status ice_set_vlan_mode (struct ice_hw *hw) { +/* DCF only has the ability to query the VLAN mode. Setting the VLAN +* mode is done by the PF. +*/ +if (hw->dcf_enabled) +return ICE_SUCCESS ; +if (!ice_is_dvm_supported (hw))return ICE_SUCCESS ;
Signature · 1 line
2.30.0
Quoted 35 lines
-----Original Message-----
From: Wang, Haiyue <[email protected]>
Sent: Thursday, January 28, 2021 00:05
To: [email protected]
Cc: Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Wang, Haiyue <[email protected]>
Subject: [PATCH v1]net/ice/base: don't set VLAN mode in DCF modeThe PF will set the VLAN mode globally, DCF just needs to get the VLAN mode.
Signed-off-by Haiyue Wang <[email protected]>--- drivers/net/ice/base/ice_vlan_mode.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/net/ice/base/ice_vlan_mode.c +6
-1@@ -354,6 +354,12 @@ static enum ice_status ice_set_svm(struct ice_hw*hw) */ enum ice_status ice_set_vlan_mode (struct ice_hw *hw) { +/* DCF only has the ability to query the VLAN mode. Setting the VLAN +* mode is done by the PF. +*/ +if (hw->dcf_enabled) +return ICE_SUCCESS ; +if (!ice_is_dvm_supported (hw))return ICE_SUCCESS ; --2.30.0
Zhang, Qi Z
AppliedQuoted 19 lines
-----Original Message-----
From: Yang, Qiming <[email protected]>
Sent: Thursday, January 28, 2021 4:22 PM
To: Wang, Haiyue <[email protected]>; [email protected]
Cc: Zhang, Qi Z <[email protected]>
Subject: RE: [PATCH v1]net/ice/base: don't set VLAN mode in DCF modeAcked-by Qiming Yang <[email protected]>Quoted 8 lines
-----Original Message-----
From: Wang, Haiyue <[email protected]>
Sent: Thursday, January 28, 2021 00:05
To: [email protected]
Cc: Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Wang, Haiyue <[email protected]>
Subject: [PATCH v1]net/ice/base: don't set VLAN mode in DCF mode
Quoted 4 lines
Quoted 1 line
The PF will set the VLAN mode globally, DCF just needs to get the VLAN
mode.
Quoted 2 lines
Signed-off-by Haiyue Wang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi