Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Busch <kbusch@kernel.org>
To: Max Gurtovoy <mgurtovoy@nvidia.com>
Cc: Christoph Hellwig <hch@lst.de>,
	linux-nvme@lists.infradead.org, sagi@grimberg.me, kch@nvidia.com,
	israelr@nvidia.com
Subject: Re: [PATCH 3/3] nvmet: replace transports array with a linked list
Date: Mon, 22 Sep 2025 15:27:25 -0600	[thread overview]
Message-ID: <aNG_PeEFqTRFp6Np@kbusch-mbp> (raw)
In-Reply-To: <cfe873eb-5e39-48b5-9d9d-1e2874bc1e30@nvidia.com>

On Tue, Sep 23, 2025 at 12:19:59AM +0300, Max Gurtovoy wrote:
> 
> maybe we can do something like this instead:
> 
> diff --git a/include/linux/nvme.h b/include/linux/nvme.h
> index 655d194f8e72..8e076960875c 100644
> --- a/include/linux/nvme.h
> +++ b/include/linux/nvme.h
> @@ -68,7 +68,7 @@ enum {
>         NVMF_TRTYPE_RDMA        = 1,    /* RDMA */
>         NVMF_TRTYPE_FC          = 2,    /* Fibre Channel */
>         NVMF_TRTYPE_TCP         = 3,    /* TCP/IP */
> -       NVMF_TRTYPE_LOOP        = 254,  /* Reserved for host usage */
> +       NVMF_TRTYPE_LOOP        = 15,   /* Reserved for host usage */
>         NVMF_TRTYPE_MAX,
>  };

The 254 value for the host loopback transport type is in defined that
way in the fabrics spec, so we can't readily change in the driver.


  reply	other threads:[~2025-09-22 21:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-20 23:49 [PATCH 1/3] nvmet: prevent redundant enable/disable of nvmet_port Max Gurtovoy
2025-09-20 23:49 ` [PATCH 2/3] nvmet: use port's tr_ops in nvmet_disable_port Max Gurtovoy
2025-09-22 17:33   ` Christoph Hellwig
2025-09-20 23:49 ` [PATCH 3/3] nvmet: replace transports array with a linked list Max Gurtovoy
2025-09-22 17:35   ` Christoph Hellwig
2025-09-22 21:19     ` Max Gurtovoy
2025-09-22 21:27       ` Keith Busch [this message]
2025-09-22 21:45         ` Max Gurtovoy
2025-09-22 17:33 ` [PATCH 1/3] nvmet: prevent redundant enable/disable of nvmet_port Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aNG_PeEFqTRFp6Np@kbusch-mbp \
    --to=kbusch@kernel.org \
    --cc=hch@lst.de \
    --cc=israelr@nvidia.com \
    --cc=kch@nvidia.com \
    --cc=linux-nvme@lists.infradead.org \
    --cc=mgurtovoy@nvidia.com \
    --cc=sagi@grimberg.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox