]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
idpf: introduce local idpf structure to store virtchnl queue chunks
authorPavan Kumar Linga <pavan.kumar.linga@intel.com>
Thu, 13 Nov 2025 00:41:34 +0000 (16:41 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 22 Jan 2026 21:59:45 +0000 (13:59 -0800)
commitd83d80347dea37e568ca9abf969ee909859a5a7d
tree3ff93cbb4298b66ed516393cf46b329c5270a3a7
parentb00a7b3a612925faa7362f5c61065e3e5f393fff
idpf: introduce local idpf structure to store virtchnl queue chunks

Queue ID and register info received from device Control Plane is stored
locally in the same little endian format. As the queue chunks are
retrieved in 3 functions, lexx_to_cpu conversions are done each time.
Instead introduce a new idpf structure to store the received queue info.
It also avoids conditional check to retrieve queue chunks.

With this change, there is no need to store the queue chunks in
'req_qs_chunks' field. So remove that.

Suggested-by: Milena Olech <milena.olech@intel.com>
Reviewed-by: Anton Nadezhdin <anton.nadezhdin@intel.com>
Signed-off-by: Pavan Kumar Linga <pavan.kumar.linga@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Joshua Hay <joshua.a.hay@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/idpf.h
drivers/net/ethernet/intel/idpf/idpf_lib.c
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h