common/iavf: support raw packet in protocol header
authorJunfeng Guo <junfeng.guo@intel.com>
Mon, 23 May 2022 02:31:34 +0000 (10:31 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 24 May 2022 02:53:37 +0000 (04:53 +0200)
commitbdd7558f5ba2b1f4fe5cae583a2ffdd51568c054
tree62d1dec5423d3786fe3f5d9ff5333c6c6f339f40
parentc43bfb7d598585271573e3231d831b9cd5ad4708
common/iavf: support raw packet in protocol header

The patch extends existing virtchnl_proto_hdrs structure to allow VF
to pass a pair of buffers as packet data and mask that describe
a match pattern of a filter rule. Then the kernel PF driver is requested
to parse the pair of buffer and figure out low level hardware metadata
(ptype, profile, field vector.. ) to program the expected FDIR or RSS
rules.

Also update the proto_hdrs template init to align the virtchnl changes.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/common/iavf/virtchnl.h
drivers/net/iavf/iavf_hash.c