]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Support for NIXLF's UCAST/PROMISC/ALLMULTI modes
authorSunil Goutham <sgoutham@marvell.com>
Mon, 22 Oct 2018 17:56:04 +0000 (23:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 03:15:38 +0000 (20:15 -0700)
commitedc40e1f35d029030f483fcdc7aa3eb760aed468
treef338e6fe07cedf8972b961b0b5bc3dbbb0918a41
parentf0dd1d506fb9d7e6e5ad86fb0cedacdfedb442f3
octeontx2-af: Support for NIXLF's UCAST/PROMISC/ALLMULTI modes

By default NIXLF is set in UCAST mode. This patch adds a new
mailbox message which when sent by a RVU PF changes this default
mode. When promiscuous mode is needed, the reserved promisc entry
for each of RVU PF is setup to match against ingress channel number
only, so that all pkts on that channel are accepted and forwarded
to the mode change requesting PF_FUNC's NIXLF.

PROMISC and ALLMULTI modes are supported only for PFs, for VFs only
UCAST mode is supported.

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
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