git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53900e1
)
net/ice/base: do not set VLAN mode in DCF mode
author
Haiyue Wang
<haiyue.wang@intel.com>
Wed, 27 Jan 2021 16:05:16 +0000
(
00:05
+0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:11 +0000
(18:16 +0100)
The PF will set the VLAN mode globally, DCF just needs to get the VLAN
mode.
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_vlan_mode.c
patch
|
blob
|
history
diff --git
a/drivers/net/ice/base/ice_vlan_mode.c
b/drivers/net/ice/base/ice_vlan_mode.c
index
2e4c3f6
..
460c4f9
100644
(file)
--- a/
drivers/net/ice/base/ice_vlan_mode.c
+++ b/
drivers/net/ice/base/ice_vlan_mode.c
@@
-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;