[dpdk-dev] net/i40e: fix vsi vlan stripping

Message ID 20170824132909.31253-1-zealot0630@gmail.com (mailing list archive)
State Rejected, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Zang MingJie Aug. 24, 2017, 1:29 p.m. UTC
  Function i40e_vsi_config_vlan_stripping doesn't strip vlan tag for vf.
The patch should fix the problem.

Signed-off-by: Zang MingJie <zealot0630@gmail.com>
---
 drivers/net/i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jingjing Wu Sept. 9, 2017, 3:21 a.m. UTC | #1
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zang MingJie
> Sent: Thursday, August 24, 2017 9:29 PM
> To: dev@dpdk.org
> Cc: Zang MingJie <zealot0630@gmail.com>
> 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.
> 
> Signed-off-by: Zang MingJie <zealot0630@gmail.com>
> ---
>  drivers/net/i40e/i40e_ethdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
> index 5f26e24a3..cd48ebbc1 100644
> --- a/drivers/net/i40e/i40e_ethdev.c
> +++ b/drivers/net/i40e/i40e_ethdev.c
> @@ -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
  
Jingjing Wu Oct. 11, 2017, 5:12 a.m. UTC | #2
NACK it.

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wu, Jingjing
> Sent: Saturday, September 9, 2017 11:22 AM
> To: Zang MingJie <zealot0630@gmail.com>; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix vsi vlan stripping
> 
> 
> 
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zang MingJie
> > Sent: Thursday, August 24, 2017 9:29 PM
> > To: dev@dpdk.org
> > Cc: Zang MingJie <zealot0630@gmail.com>
> > 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.
> >
> > Signed-off-by: Zang MingJie <zealot0630@gmail.com>
> > ---
> >  drivers/net/i40e/i40e_ethdev.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/i40e/i40e_ethdev.c
> > b/drivers/net/i40e/i40e_ethdev.c index 5f26e24a3..cd48ebbc1 100644
> > --- a/drivers/net/i40e/i40e_ethdev.c
> > +++ b/drivers/net/i40e/i40e_ethdev.c
> > @@ -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
  

Patch

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index 5f26e24a3..cd48ebbc1 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -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 =