]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a07b4fd5afc5f9b44c9e1ef8159f2650e517137
treea6534c59ef190552520d5f86f32045fd3ec0bd19
parent9752da3a01d8a24e3e8a40d2b53c601cb83f33f8
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: 9a1fa34b33c7 ("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