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)
commitd450a23515e00b3c0701f4ae7f3e47dc71aa7bca
tree6fd8d7b5bdbad40f5c2f3e94b8ad554f6f0916c3
parent63f925dc55b33e8c4edd0de5e83904cd179d3095
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