octeontx2-vf: set TC flower flag on MCAM entry allocation
Ratheesh Kannoth
maintainerPATCH 1/1 octeontx2-vf: set TC flower flag on MCAM entry allocation
From: Suman Ghosh <[email protected]>
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.
--- drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c +1 -0
@@ -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)
Signature · 1 line
2.43.0
Quoted 10 lines · Ratheesh Kannoth
From: Suman Ghosh <[email protected]>
When MCAM entries are allocated for a VF netdev via the devlink
mcam_countparameter, onlyOTX2_FLAG_NTUPLE_SUPPORTwas set. That enabled ethtool ntuple filters but not tc flower offload. Also setOTX2_FLAG_TC_FLOWER_SUPPORTwhen entries are successfully allocated.Fixes 2da489432747 ("octeontx2-pf: devlink params support to set mcam entry count")Signed-off-by Suman Ghosh <[email protected]>Signed-off-by Ratheesh Kannoth <[email protected]>
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:
Quoted 8 lines · On Wed, 15 Jul 2026 10:50:07 +0530 you wrote:
From: Suman Ghosh <[email protected]>
When MCAM entries are allocated for a VF netdev via the devlink
mcam_countparameter, onlyOTX2_FLAG_NTUPLE_SUPPORTwas set. That enabled ethtool ntuple filters but not tc flower offload. Also setOTX2_FLAG_TC_FLOWER_SUPPORTwhen 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!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html