Netdev List
 help / color / mirror / Atom feed
* [PATCH net] octeontx2-vf: set TC flower flag on MCAM entry allocation
@ 2026-07-15  5:20 Ratheesh Kannoth
  2026-07-22 13:47 ` Simon Horman
  2026-07-23 13:40 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Ratheesh Kannoth @ 2026-07-15  5:20 UTC (permalink / raw)
  To: davem, linux-kernel, netdev, sbhatta, sgoutham
  Cc: andrew+netdev, edumazet, kuba, pabeni, Suman Ghosh,
	Ratheesh Kannoth

From: Suman Ghosh <sumang@marvell.com>

When MCAM entries are allocated for a VF netdev via the devlink
mcam_count parameter, only OTX2_FLAG_NTUPLE_SUPPORT was set. That
enabled ethtool ntuple filters but not tc flower offload. Also set
OTX2_FLAG_TC_FLOWER_SUPPORT when entries are successfully allocated.

Fixes: 2da489432747 ("octeontx2-pf: devlink params support to set mcam entry count")
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
---
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
index 5dd0591fed99..99d78fc5a2c4 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
@@ -272,6 +272,7 @@ int otx2_alloc_mcam_entries(struct otx2_nic *pfvf, u16 count)
 	if (allocated) {
 		pfvf->flags |= OTX2_FLAG_MCAM_ENTRIES_ALLOC;
 		pfvf->flags |= OTX2_FLAG_NTUPLE_SUPPORT;
+		pfvf->flags |= OTX2_FLAG_TC_FLOWER_SUPPORT;
 	}
 
 	if (allocated != count)
-- 
2.43.0


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

* Re: [PATCH net] octeontx2-vf: set TC flower flag on MCAM entry allocation
  2026-07-15  5:20 [PATCH net] octeontx2-vf: set TC flower flag on MCAM entry allocation Ratheesh Kannoth
@ 2026-07-22 13:47 ` Simon Horman
  2026-07-23 13:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2026-07-22 13:47 UTC (permalink / raw)
  To: Ratheesh Kannoth
  Cc: davem, linux-kernel, netdev, sbhatta, sgoutham, andrew+netdev,
	edumazet, kuba, pabeni, Suman Ghosh

On Wed, Jul 15, 2026 at 10:50:07AM +0530, Ratheesh Kannoth wrote:
> From: Suman Ghosh <sumang@marvell.com>
> 
> When MCAM entries are allocated for a VF netdev via the devlink
> mcam_count parameter, only OTX2_FLAG_NTUPLE_SUPPORT was set. That
> enabled ethtool ntuple filters but not tc flower offload. Also set
> OTX2_FLAG_TC_FLOWER_SUPPORT when entries are successfully allocated.
> 
> Fixes: 2da489432747 ("octeontx2-pf: devlink params support to set mcam entry count")
> Signed-off-by: Suman Ghosh <sumang@marvell.com>
> Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>

Reviewed-by: Simon Horman <horms@kernel.org>

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

* Re: [PATCH net] octeontx2-vf: set TC flower flag on MCAM entry allocation
  2026-07-15  5:20 [PATCH net] octeontx2-vf: set TC flower flag on MCAM entry allocation Ratheesh Kannoth
  2026-07-22 13:47 ` Simon Horman
@ 2026-07-23 13:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-07-23 13:40 UTC (permalink / raw)
  To: Ratheesh Kannoth
  Cc: davem, linux-kernel, netdev, sbhatta, sgoutham, andrew+netdev,
	edumazet, kuba, pabeni, sumang

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Wed, 15 Jul 2026 10:50:07 +0530 you wrote:
> From: Suman Ghosh <sumang@marvell.com>
> 
> When MCAM entries are allocated for a VF netdev via the devlink
> mcam_count parameter, only OTX2_FLAG_NTUPLE_SUPPORT was set. That
> enabled ethtool ntuple filters but not tc flower offload. Also set
> OTX2_FLAG_TC_FLOWER_SUPPORT when entries are successfully allocated.
> 
> [...]

Here is the summary with links:
  - [net] octeontx2-vf: set TC flower flag on MCAM entry allocation
    https://git.kernel.org/netdev/net/c/0d4d31e3cc5d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2026-07-23 13:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15  5:20 [PATCH net] octeontx2-vf: set TC flower flag on MCAM entry allocation Ratheesh Kannoth
2026-07-22 13:47 ` Simon Horman
2026-07-23 13:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox