[PATCH v4] nvme-tcp: fix connect failure on receiving partial ICResp PDU

Caleb Sander csander at purestorage.com
Mon Feb 10 09:24:54 PST 2025


Gentle ping on this patch. Sagi reviewed it, and I don't hear any
additional comments from Hannes.

Thanks,
Caleb

On Tue, Feb 4, 2025 at 2:20 PM Caleb Sander <csander at purestorage.com> wrote:
>
> On Sun, Feb 2, 2025 at 11:20 PM Hannes Reinecke <hare at suse.de> wrote:
> ...
> > The PSK identification has to contain the host NQN _and_ the target NQN.
> > So you need to call gen-tls-key with both in order to generate a PSK
> > with an identitify which can be found for a connection attempt.
>
> Got it. With "--hostnqn `cat /etc/nvme/hostnqn`" added to the nvme
> gen-tls-key commands, the discovery and connection succeed. I see the
> same behavior with and without my patch.
>
> $ nvme connect-all --transport tcp --traddr 127.0.0.1 --trsvcid 4420 --tls
> $ nvme list
> Node                  Generic               SN                   Model
>                                    Namespace  Usage
>   Format           FW Rev
> --------------------- --------------------- --------------------
> ---------------------------------------- ----------
> -------------------------- ---------------- --------
> /dev/nvme1n1          /dev/ng1n1            d95671fe6e0ebf8c199c Linux
>                                    0x1        268.44  GB / 268.44  GB
>   512   B +  0 B   5.14.0-5
>
> Hannes, is there any other information you need or do you think this
> patch can be merged?
>
> Thanks,
> Caleb



More information about the Linux-nvme mailing list