]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Add support for multi channel in NIX promisc entry
authorNalla, Pradeep <pnalla@marvell.com>
Wed, 17 Mar 2021 13:35:35 +0000 (19:05 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2021 19:29:39 +0000 (12:29 -0700)
commit6443792a1c3fdb5e1fbcf5e3e0849fd331c121bc
tree6fd8d7b5bdbad40f5c2f3e94b8ad554f6f0916c3
parent22bdb6a5d2eee1f2237dd9e4b6f6db191d7a9fad
octeontx2-af: Add support for multi channel in NIX promisc entry

This patch adds support for multi channel NIX promisc entry. Packets sent
on all those channels by the host should be received by the interface to
which those channels belong. Channel count, if greater than 1, should be
power of 2 as only one promisc entry is available for the interface. Key
mask is modified such that incoming packets from channel base to channel
count are directed to the same pci function.

Signed-off-by: Nalla, Pradeep <pnalla@marvell.com>
Signed-off-by: Naveen Mamindlapalli <naveenm@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