octeontx2-pf: Do not reallocate all ntuple filters
authorSubbaraya Sundeep <sbhatta@marvell.com>
Mon, 12 May 2025 12:52:37 +0000 (18:22 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 15 May 2025 10:37:59 +0000 (12:37 +0200)
commitdcb479fde00be9a151c047d0a7c0626b64eb0019
treeacf8f18f53109dbc1b388b722df3e422617d2eea
parent09db7a4d287d1a2bcfc04df023c103d1213a0518
octeontx2-pf: Do not reallocate all ntuple filters

If ntuple filters count is modified followed by
unicast filters count using devlink then the ntuple count
set by user is ignored and all the ntuple filters are
being reallocated. Fix this by storing the ntuple count
set by user. Without this patch, say if user tries
to modify ntuple count as 8 followed by ucast filter count as 4
using devlink commands then ntuple count is being reverted to
default value 16 i.e, not retaining user set value 8.

Fixes: 39c469188b6d ("octeontx2-pf: Add ucast filter count configurability via devlink.")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1747054357-5850-1-git-send-email-sbhatta@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c