octeontx2-af: Fix promiscuous mode
authorRatheesh Kannoth <rkannoth@marvell.com>
Thu, 8 Jun 2023 05:16:25 +0000 (10:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:00:58 +0000 (16:00 +0200)
commitc9411f014e5ccd2e3cb2dc8ab96ea6bc76a978f6
treee2338ae19c03494fa330cc705dd63dc2c2fee7de
parent5cf38fbc82bac41e44368514e00a27c4c2818bd7
octeontx2-af: Fix promiscuous mode

[ Upstream commit c0e489372a294044feea650b38f38c888eff57a4 ]

CN10KB silicon introduced a new exact match feature,
which is used for DMAC filtering. The state of installed
DMAC filters in this exact match table is getting corrupted
when promiscuous mode is toggled. Fix this by not touching
Exact match related config when promiscuous mode is toggled.

Fixes: 2dba9459d2c9 ("octeontx2-af: Wrapper functions for MAC addr add/del/update/reset")
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c