octeontx2-pf: Add vlan-etype to ntuple filters
NPC extraction profile marks layer types NPC_LT_LB_CTAG for CTAG and NPC_LT_LB_STAG_QINQ for STAG after parsing input packet. Those layer types can be used to install ntuple filters using vlan-etype option. Below are the commands and corresponding behavior with this patch in place. > alias nt "ethtool -U eth0 flow-type ether" > nt vlan 5 m 0xf000 action 0 Input packets with outer VLAN id as 5 i.e, stag packets with VLAN id 5 and ctag packets with VLAN id as 5 are hit. > nt vlan-etype 0x8100 action 0 All input ctag packets with any VLAN id are hit. > nt vlan-etype 0x88A8 action 0 All input stag packets with any VLAN id are hit. > nt vlan-etype 0x8100 vlan 5 m 0xf000 action 0 All input ctag packets with VLAN id 5 are hit. > nt vlan-etype 0x88A8 vlan 5 m 0xf000 action 0 All input stag packets with VLAN id 5 are hit. Signed-off-by:Subbaraya Sundeep <sbhatta@marvell.com> 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 2 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/af/npc.h
- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c 30 additions, 5 deletionsdrivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h 0 additions, 2 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c 26 additions, 4 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
Loading