[PATCH v2 1/2] nvme-tcp: refactor I/O queue setup path

Randy Jennings randyj at purestorage.com
Mon Aug 24 16:36:08 PDT 2026


On Mon, Aug 24, 2026 at 3:57 PM Surabhi Gogte <sgogte at purestorage.com> wrote:
>
> Split the I/O queue setup helpers apart so that the individual steps can
> be called directly from nvme_tcp_configure_io_queues():
>
> - Queue count negotiation moves out of nvme_tcp_alloc_io_queues() into a
>   new nvme_tcp_io_queue_count(), leaving the allocator with just the
>   per-queue allocation loop.
> - TLS PSK validation moves out of __nvme_tcp_alloc_io_queues() into a
>   new nvme_tcp_tls_check_psk().
> - nvme_tcp_configure_io_queues() now calls the three steps directly in
>   the same order as before.
>
> Signed-off-by: Surabhi Gogte <sgogte at purestorage.com>
Reviewed-by: Randy Jennings <randyj at purestorage.com>



More information about the Linux-nvme mailing list