netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/1] net: mvpp2: cls: Fixed Non IP flow, with vlan tag flow defination.
@ 2025-02-24  6:29 Harshal Chaudhari
  2025-02-24 10:32 ` Maxime Chevallier
  2025-02-24 10:35 ` Maxime Chevallier
  0 siblings, 2 replies; 3+ messages in thread
From: Harshal Chaudhari @ 2025-02-24  6:29 UTC (permalink / raw)
  To: marcin.s.wojtas, linux, andrew+netdev, davem, edumazet, kuba,
	pabeni
  Cc: netdev, linux-kernel, Harshal Chaudhari

Fixes: 1274daede3ef ("net: mvpp2: cls: Add steering based on vlan Id and priority.")

Non IP flow, with vlan tag not working as expected while
running below command for vlan-priority. fixed that.

ethtool -N eth1 flow-type ether vlan 0x8000 vlan-mask 0x1fff action 0 loc 0

Change from v1:
	* Added the fixes tag

Signed-off-by: Harshal Chaudhari <hchaudhari@marvell.com>
---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c
index 1641791a2d5b..8ed83fb98862 100644
--- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c
+++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c
@@ -324,7 +324,7 @@ static const struct mvpp2_cls_flow cls_flows[MVPP2_N_PRS_FLOWS] = {
 		       MVPP2_PRS_RI_VLAN_MASK),
 	/* Non IP flow, with vlan tag */
 	MVPP2_DEF_FLOW(MVPP22_FLOW_ETHERNET, MVPP2_FL_NON_IP_TAG,
-		       MVPP22_CLS_HEK_OPT_VLAN,
+		       MVPP22_CLS_HEK_TAGGED,
 		       0, 0),
 };
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 1/1] net: mvpp2: cls: Fixed Non IP flow, with vlan tag flow defination.
  2025-02-24  6:29 [PATCH v2 1/1] net: mvpp2: cls: Fixed Non IP flow, with vlan tag flow defination Harshal Chaudhari
@ 2025-02-24 10:32 ` Maxime Chevallier
  2025-02-24 10:35 ` Maxime Chevallier
  1 sibling, 0 replies; 3+ messages in thread
From: Maxime Chevallier @ 2025-02-24 10:32 UTC (permalink / raw)
  To: Harshal Chaudhari
  Cc: marcin.s.wojtas, linux, andrew+netdev, davem, edumazet, kuba,
	pabeni, netdev, linux-kernel

Hello,

On Sun, 23 Feb 2025 22:29:27 -0800
Harshal Chaudhari <hchaudhari@marvell.com> wrote:

> Fixes: 1274daede3ef ("net: mvpp2: cls: Add steering based on vlan Id and priority.")
> 
> Non IP flow, with vlan tag not working as expected while
> running below command for vlan-priority. fixed that.
> 
> ethtool -N eth1 flow-type ether vlan 0x8000 vlan-mask 0x1fff action 0 loc 0
> 
> Change from v1:
> 	* Added the fixes tag
> 
> Signed-off-by: Harshal Chaudhari <hchaudhari@marvell.com>

Well spotted, thanks for fixing this

Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>

Maxime

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 1/1] net: mvpp2: cls: Fixed Non IP flow, with vlan tag flow defination.
  2025-02-24  6:29 [PATCH v2 1/1] net: mvpp2: cls: Fixed Non IP flow, with vlan tag flow defination Harshal Chaudhari
  2025-02-24 10:32 ` Maxime Chevallier
@ 2025-02-24 10:35 ` Maxime Chevallier
  1 sibling, 0 replies; 3+ messages in thread
From: Maxime Chevallier @ 2025-02-24 10:35 UTC (permalink / raw)
  To: Harshal Chaudhari
  Cc: marcin.s.wojtas, linux, andrew+netdev, davem, edumazet, kuba,
	pabeni, netdev, linux-kernel

On Sun, 23 Feb 2025 22:29:27 -0800
Harshal Chaudhari <hchaudhari@marvell.com> wrote:

> Fixes: 1274daede3ef ("net: mvpp2: cls: Add steering based on vlan Id and priority.")

Well, that tag should be alongside your SoB (just before it)

> Non IP flow, with vlan tag not working as expected while
> running below command for vlan-priority. fixed that.
> 
> ethtool -N eth1 flow-type ether vlan 0x8000 vlan-mask 0x1fff action 0 loc 0
> 


> Change from v1:
> 	* Added the fixes tag

This should be below the "---", as it won't be in the final commit log.

> Signed-off-by: Harshal Chaudhari <hchaudhari@marvell.com>
> ---

here

>  drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c
> index 1641791a2d5b..8ed83fb98862 100644
> --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c
> +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c
> @@ -324,7 +324,7 @@ static const struct mvpp2_cls_flow cls_flows[MVPP2_N_PRS_FLOWS] = {
>  		       MVPP2_PRS_RI_VLAN_MASK),
>  	/* Non IP flow, with vlan tag */
>  	MVPP2_DEF_FLOW(MVPP22_FLOW_ETHERNET, MVPP2_FL_NON_IP_TAG,
> -		       MVPP22_CLS_HEK_OPT_VLAN,
> +		       MVPP22_CLS_HEK_TAGGED,
>  		       0, 0),
>  };
>  

Maxime

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-24 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24  6:29 [PATCH v2 1/1] net: mvpp2: cls: Fixed Non IP flow, with vlan tag flow defination Harshal Chaudhari
2025-02-24 10:32 ` Maxime Chevallier
2025-02-24 10:35 ` Maxime Chevallier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).