octeontx2-af: Validate NIX maximum LFs correctly
authorSubbaraya Sundeep <sbhatta@marvell.com>
Sun, 21 Jun 2026 23:00:53 +0000 (04:30 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Jun 2026 01:46:01 +0000 (18:46 -0700)
commit1576d12a39860418d6a68b402fda71a48f04a57c
tree0fc46a7d17549b693bda2848874ea66545bcaf9a
parent2bd6f26d4ce1e87de4d736b1e8896daf3acf1c0e
octeontx2-af: Validate NIX maximum LFs correctly

NIX maximum number of LFs can be set via devlink command
but that can be done before assigning any LFs to a PF/VF.
The condition used to check whether any LFs are assigned is
incorrect. This patch fixes that condition.

Fixes: dd7842878633 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Link: https://patch.msgid.link/1782082853-6941-1-git-send-email-sbhatta@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c