Skip to contentSkip to conversation

net/i40e: fix vsi vlan stripping

PATCH In review Zang MingJie 2 participants 3 messages Aug 24, 2017 – Oct 11, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix vsi vlan stripping

Function i40e_vsi_config_vlan_stripping doesn't strip vlan tag for vf. The patch should fix the problem.

---
 drivers/net/i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev.c +1 -1
index 5f26e24a3..cd48ebbc1 100644
@@ -5189,7 +5189,7 @@ i40e_vsi_config_vlan_stripping(struct i40e_vsi *vsi, bool on)
 	}
 
 	if (on)
-		vlan_flags = I40E_AQ_VSI_PVLAN_EMOD_STR_BOTH;
+		vlan_flags = I40E_AQ_VSI_PVLAN_EMOD_STR;
 	else
 		vlan_flags = I40E_AQ_VSI_PVLAN_EMOD_NOTHING;
 	vsi->info.valid_sections =
Signature · 1 line
2.11.0
#1 lore raw
Quoted 22 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zang MingJie
Sent: Thursday, August 24, 2017 9:29 PM
To: [email protected]
Cc: Zang MingJie <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix vsi vlan stripping

Function i40e_vsi_config_vlan_stripping doesn't strip vlan tag for vf. The patch should fix the problem.

---
 drivers/net/i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev.c +0 -0
index 5f26e24a3..cd48ebbc1 100644

drivers/net/i40e/i40e_ethdev.c i40e_vsi_config_vlan_stripping(struct i40e_vsi *vsi, bool on) · line 5195

Quoted 8 lines
drivers/net/i40e/i40e_ethdev.c +1 -1
@@ -5189,7 +5189,7 @@ i40e_vsi_config_vlan_stripping(struct i40e_vsi *vsi, bool on)
 	}
 
 	if (on)
-		vlan_flags = I40E_AQ_VSI_PVLAN_EMOD_STR_BOTH;
+		vlan_flags = I40E_AQ_VSI_PVLAN_EMOD_STR;
 	else
 		vlan_flags = I40E_AQ_VSI_PVLAN_EMOD_NOTHING;
 	vsi->info.valid_sections =

How did you find this issue? In our cases, it works well.
And according to the datasheet, the EMOD_STR meaning Hide vlan but not strip them to descriptor.

Thanks
Jingjing

#2 lore raw

NACK it.

Quoted 44 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Wu, Jingjing
Sent: Saturday, September 9, 2017 11:22 AM
To: Zang MingJie <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix vsi vlan stripping

drivers/net/i40e/i40e_ethdev.c i40e_vsi_config_vlan_stripping(struct i40e_vsi *vsi,

Quoted 20 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zang MingJie
Sent: Thursday, August 24, 2017 9:29 PM
To: [email protected]
Cc: Zang MingJie <[email protected]>
Subject: [dpdk-dev] [PATCH] net/i40e: fix vsi vlan stripping

Function i40e_vsi_config_vlan_stripping doesn't strip vlan tag for vf. The patch should fix the problem.

---
 drivers/net/i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/net/i40e/i40e_ethdev.c index 5f26e24a3..cd48ebbc1 100644

drivers/net/i40e/i40e_ethdev.c +0 -0
@@ -5189,7 +5189,7 @@ i40e_vsi_config_vlan_stripping(struct i40e_vsi *vsi,

bool on)

drivers/net/i40e/i40e_ethdev.c i40e_vsi_config_vlan_stripping(struct i40e_vsi *vsi, bool on) · line 5195

Quoted 8 lines
drivers/net/i40e/i40e_ethdev.c +1 -1
 	}
 
 	if (on)
-		vlan_flags = I40E_AQ_VSI_PVLAN_EMOD_STR_BOTH;
+		vlan_flags = I40E_AQ_VSI_PVLAN_EMOD_STR;
 	else
 		vlan_flags = I40E_AQ_VSI_PVLAN_EMOD_NOTHING;
 	vsi->info.valid_sections =

How did you find this issue? In our cases, it works well. And according to the datasheet, the EMOD_STR meaning Hide vlan but not strip them to descriptor.

Thanks
Jingjing