net/ice: simplify flow director rules for IP fragment
authorWenjun Wu <wenjun1.wu@intel.com>
Wed, 7 Jul 2021 06:18:13 +0000 (14:18 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 9 Jul 2021 03:05:19 +0000 (05:05 +0200)
commit5ae0906ee7d78834431af568aade1aace240e717
tree14be6279a2e168b75ec3d67b3a4093aeb75ab7cc
parent850989f9381902e36d44c2c4c7409ad703ef99cb
net/ice: 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/ice/ice_fdir_filter.c