]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitd6f092ca928f4ed615c11b40f5856ebe1f3d4dd2
treef338e6fe07cedf8972b961b0b5bc3dbbb0918a41
parent6f03cf10fcdf56fd72777c60e9dbd75bd4228dae
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