]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
octeontx2-af: npc: Fix allmulticast skip logic for LBK and SDP VFs
authorRatheesh Kannoth <rkannoth@marvell.com>
Wed, 20 May 2026 04:30:36 +0000 (10:00 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 May 2026 15:12:59 +0000 (08:12 -0700)
commit9eddc819f00b5b74bb4ac91396f80bd35f5f3561
tree08265b402f8fff19f2cb0a960eea34a40f7a0cad
parentc367b9082194d01cb38bdefac6e887ebf1ab017d
octeontx2-af: npc: Fix allmulticast skip logic for LBK and SDP VFs

When installing the allmulticast NPC rule, rvu_npc_install_allmulti_entry()
should skip LBK and SDP VFs (only CGX PF/VF may add the entry).  The
code combined is_lbk_vf() and is_sdp_vf() with logical AND, which is
never true for a single pcifunc, so the intended early return never ran.

Use logical OR instead.

Cc: Geetha sowjanya <gakula@marvell.com>
Fixes: ae703539f49d2 ("octeontx2-af: Cleanup loopback device checks")
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Link: https://patch.msgid.link/20260520043036.1523798-1-rkannoth@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c