]> www.infradead.org Git - users/hch/misc.git/commit
idpf: set scheduling mode for completion queue
authorMichal Kubiak <michal.kubiak@intel.com>
Mon, 23 Oct 2023 20:26:54 +0000 (13:26 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Oct 2023 22:55:31 +0000 (15:55 -0700)
commitd38b4d0d95bc0c7243ca54a32c256c0583b6a9fc
tree213c9ce7f5de7558990e85f713676dd55623f147
parent81a4169856987b65918a93e9b9f53a28496575cf
idpf: set scheduling mode for completion queue

The HW must be programmed differently for queue-based scheduling mode.
To program the completion queue context correctly, the control plane
must know the scheduling mode not only for the Tx queue, but also for
the completion queue.
Unfortunately, currently the driver sets the scheduling mode only for
the Tx queues.

Propagate the scheduling mode data for the completion queue as
well when sending the queue configuration messages.

Fixes: 1c325aac10a8 ("idpf: configure resources for TX queues")
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Michal Kubiak <michal.kubiak@intel.com>
Reviewed-by: Alan Brady <alan.brady@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20231023202655.173369-2-jacob.e.keller@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/idpf/idpf_txrx.c
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c