octeontx2-af: Fix enable/disable of default NPC entries
authorSubbaraya Sundeep <sbhatta@marvell.com>
Wed, 30 Sep 2020 16:08:27 +0000 (21:38 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Sep 2020 22:07:19 +0000 (15:07 -0700)
commite154b5b70368a84a19505a0be9b0096c66562b56
treea6534c59ef190552520d5f86f32045fd3ec0bd19
parent03e7e72ceddaa643795bb36b7dcdde262eba94b0
octeontx2-af: Fix enable/disable of default NPC entries

Packet replication feature present in Octeontx2
is a hardware linked list of PF and its VF
interfaces so that broadcast packets are sent
to all interfaces present in the list. It is
driver job to add and delete a PF/VF interface
to/from the list when the interface is brought
up and down. This patch fixes the
npc_enadis_default_entries function to handle
broadcast replication properly if packet replication
feature is present.

Fixes: 40df309e4166 ("octeontx2-af: Support to enable/disable default MCAM entries")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c