• Naveen Mamindlapalli's avatar
    octeontx2-pf: Add ip tos and ip proto icmp/icmpv6 flow offload support · 2b9cef66
    Naveen Mamindlapalli authored
    Add support for programming the HW MCAM match key with IP tos, IP(v6)
    proto icmp/icmpv6, allowing flow offload rules to be installed using
    those fields. The NPC HW extracts layer type, which will be used as a
    matching criteria for different IP protocols.
    
    The ethtool n-tuple filter logic has been updated to parse the IP tos
    and l4proto for HW offloading. l4proto tcp/udp/sctp/ah/esp/icmp are
    supported. See example usage below.
    
    Ex: Redirect l4proto icmp to vf 0 queue 0
    ethtool -U eth0 flow-type ip4 l4proto 1 action vf 0 queue 0
    
    Ex: Redirect flow with ip tos 8 to vf 0 queue 0
    ethtool -U eth0 flow-type ip4 tos 8 vf 0 queue 0
    Signed-off-by: default avatarNaveen Mamindlapalli <naveenm@marvell.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2b9cef66
otx2_flows.c 25.2 KB