]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtchnl: support raw packet in protocol header
authorJunfeng Guo <junfeng.guo@intel.com>
Thu, 25 Jul 2024 22:08:05 +0000 (16:08 -0600)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 13 Aug 2024 21:51:28 +0000 (14:51 -0700)
commitfb4dae4ca315fe48f1a8a452172f29196b2a7f3d
treeb55affd2c876e908ee7fd82b085745254094f7d8
parente312b3a1e2092f612914dbc4fa5d96b4d8ff94ef
virtchnl: 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.

Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
include/linux/avf/virtchnl.h