]> 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)
commitaacb65d9a34e06bcc0385566e229ba0597d9dacb
tree6fd8d7b5bdbad40f5c2f3e94b8ad554f6f0916c3
parent99a3b4a439d8cd5d24cbf0deb15c875ca6802135
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