octeontx2-af: Install ucast and bcast pkt forwarding rules
Upon NIXLF_ALLOC install a unicast forwarding rule in NPC MCAM like below - Match pkt DMAC with NIXLF attached PF/VF's MAC address. - Ingress channel - Action is UCAST - Forward to PF_FUNC of this NIXLF And broadcast pkt forwarding rule as - Match L2B bit in MCAM search key - Ingress channel - Action is UCAST, for now, later it will be changed to MCAST. Only PFs can install this rule Upon NIXLF_FREE disable all MCAM entries in use by that NIXLF. Signed-off-by:Sunil Goutham <sgoutham@marvell.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/marvell/octeontx2/af/npc.h 19 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/af/npc.h
- drivers/net/ethernet/marvell/octeontx2/af/rvu.h 5 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/af/rvu.h
- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 14 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 337 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
Please register or sign in to comment