net/ice: support VXLAN VNI field in flow director
authorZhirun Yan <zhirun.yan@intel.com>
Thu, 1 Apr 2021 01:33:23 +0000 (09:33 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 1 Apr 2021 12:10:56 +0000 (14:10 +0200)
commit855d23a07b36df3b8d129112c35117e8c9b7c443
tree3211c2a0ac1f93a2b006c0070bcfbdbad4649b34
parent4a072ad434426ebfb5a6120858a971b54e7d2204
net/ice: support VXLAN VNI field in flow director

Add support for VNI field in FDIR. Treat VXLAN flow type as
ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN to align with shared code. It
allows to match outer L2/L3, VNI and inner L2/L3 fields with VXLAN
pattern.
VNI takes 24 bits in VXLAN header, but uses 32 bits for matching in
shared code. The 8 bits reserved field adjacent should always be 0.

Signed-off-by: Zhirun Yan <zhirun.yan@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_fdir_filter.c