net/iavf: simplify flow director rules for IP fragment
authorWenjun Wu <wenjun1.wu@intel.com>
Wed, 7 Jul 2021 06:18:53 +0000 (14:18 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 9 Jul 2021 03:05:19 +0000 (05:05 +0200)
commit00af17037d99fbe626d43b8b594544cf2c8599ce
tree5c3dc44ce70b7a567634d4d88306974949aa9bb1
parent5ae0906ee7d78834431af568aade1aace240e717
net/iavf: simplify flow director rules for IP fragment

This patch simplify the pattern of flow rules of FDIR for IP fragment.

Flow rule can be created by the following command:
1. flow create 0 ingress pattern eth /
   ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 /
   end <actions>
2. flow create 0 ingress pattern eth / ipv6 /
   ipv6_frag_ext fragment_offset spec 0x0001 fragment_offset mask 0x0001 /
   end <actions>

Signed-off-by: Wenjun Wu <wenjun1.wu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_fdir.c