]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
octeontx2-vf: set TC flower flag on MCAM entry allocation
authorSuman Ghosh <sumang@marvell.com>
Wed, 15 Jul 2026 05:20:07 +0000 (10:50 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 23 Jul 2026 13:28:51 +0000 (15:28 +0200)
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>
Link: https://patch.msgid.link/20260715052007.2099851-1-rkannoth@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c

index 5dd0591fed9996dba0a85ab2c34b0a235858f56d..99d78fc5a2c4a9cb649f904eb27d6e1f8c80539d 100644 (file)
@@ -272,6 +272,7 @@ exit:
        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)