octeontx2-pf: Implement ingress/egress VLAN offload
This patch implements egress VLAN offload by appending NIX_SEND_EXT_S header to NIX_SEND_HDR_S. The VLAN TCI information is specified in the NIX_SEND_EXT_S. The VLAN offload in the ingress path is implemented by configuring the NIX_RX_VTAG_ACTION_S to strip and capture the outer vlan fields. The NIX PF allocates one MCAM entry for Rx VLAN offload. Signed-off-by:Hariprasad Kelam <hkelam@marvell.com> Signed-off-by:
Sunil Goutham <sgoutham@marvell.com> Signed-off-by:
Naveen Mamindlapalli <naveenm@marvell.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org>
Showing
- drivers/net/ethernet/marvell/octeontx2/af/mbox.h 13 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/af/mbox.h
- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 2 additions, 1 deletiondrivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c 6 additions, 2 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h 7 additions, 1 deletiondrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c 102 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c 16 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c 16 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c 5 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
Loading
Please register or sign in to comment