]> git.ipfire.org Git - thirdparty/linux.git/commit
idpf: add virtchnl functions to manage selected queues
authorMichal Kubiak <michal.kubiak@intel.com>
Thu, 11 Sep 2025 16:22:29 +0000 (18:22 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 24 Sep 2025 17:33:57 +0000 (10:33 -0700)
commit6b8e30b640653bb300a0d47aa7e2b2369eac674f
treea1ef3de73cfb2e69ac2c471eed23f1715a5cce65
parentdc1dea796b197aba2c3cae25bfef45f4b3ad46fe
idpf: add virtchnl functions to manage selected queues

Implement VC functions dedicated to enabling, disabling and configuring
not all but only selected queues.

Also, refactor the existing implementation to make the code more
modular. Introduce new generic functions for sending VC messages
consisting of chunks, in order to isolate the sending algorithm
and its implementation for specific VC messages.

Finally, rewrite the function for mapping queues to q_vectors using the
new modular approach to avoid copying the code that implements the VC
message sending algorithm.

Signed-off-by: Michal Kubiak <michal.kubiak@intel.com>
Co-developed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Tested-by: Ramu R <ramu.r@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/idpf_txrx.c
drivers/net/ethernet/intel/idpf/idpf_txrx.h
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h