mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
octeontx2-vf: set TC flower flag on MCAM entry allocation
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: 2da4894327 ("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>
This commit is contained in:
parent
3671f0419d
commit
0d4d31e3cc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user