Skip to contentSkip to conversation

nvme: add missing MODULE_ALIAS for fabrics transports

PATCH Applied Geliang Tang 3 participants 4 messages Mar 31 – Apr 10

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme: add missing MODULE_ALIAS for fabrics transports

From: Geliang Tang <[email protected]>

The generic fabrics layer uses request_module("nvme-%s", opts->transport) to auto-load transport modules. Currently, the nvme-tcp, nvme-rdma, and nvme-fc modules lack MODULE_ALIAS entries for these names, which prevents the kernel from automatically finding and loading them when requested.

---
Hi,

Recently, I've been working on adding MPTCP support for NVMe over TCP, so I added a new transport called "nvme-mptcp". The AI review in [1] reminded me that I should add MODULE_ALIAS("nvme-mptcp"). Then I checked the other transports and found that they were all missing the MODULE_ALIAS as well. I felt it was necessary to add them, so I sent this patch.

Thanks,
-Geliang

[1]
https://sashiko.dev/#/patchset/[email protected]

---
 drivers/nvme/host/fc.c   | 1 +
 drivers/nvme/host/rdma.c | 1 +
 drivers/nvme/host/tcp.c  | 1 +
 3 files changed, 3 insertions(+)
drivers/nvme/host/fc.c +1 -0
index e1bb4707183c..e4f4528fe2a2 100644
@@ -3968,3 +3968,4 @@ module_exit(nvme_fc_exit_module);
 
 MODULE_DESCRIPTION("NVMe host FC transport driver");
 MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("nvme-fc");
drivers/nvme/host/rdma.c +1 -0
index 57111139e84f..1ec6e867aedb 100644
@@ -2432,3 +2432,4 @@ module_exit(nvme_rdma_cleanup_module);
 
 MODULE_DESCRIPTION("NVMe host RDMA transport driver");
 MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("nvme-rdma");
drivers/nvme/host/tcp.c +1 -0
index 243dab830dc8..02c95c32b07e 100644
@@ -3071,3 +3071,4 @@ module_exit(nvme_tcp_cleanup_module);
 
 MODULE_DESCRIPTION("NVMe host TCP transport driver");
 MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("nvme-tcp");
Signature · 1 line
2.51.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

Looks good:

Quoted 5 lines

Recently, I've been working on adding MPTCP support for NVMe over TCP, so I added a new transport called "nvme-mptcp". The AI review in [1] reminded me that I should add MODULE_ALIAS("nvme-mptcp"). Then I checked the other transports and found that they were all missing the MODULE_ALIAS as well. I felt it was necessary to add them, so I sent this patch.

As a reminder: if you want that to go anywhere you need to engage with the nvme technical working group, which requires a nvme membership first. There will be no point in posting or even discussing this on Linux mailing lists if it isn't approved by nvme.

#2 lore raw

Hi Christoph,

Quoted 14 lines · Christoph Hellwig

Looks good:

Quoted 9 lines

Recently, I've been working on adding MPTCP support for NVMe over TCP, so
I added a new transport called "nvme-mptcp". The AI review in [1] reminded
me that I should add MODULE_ALIAS("nvme-mptcp"). Then I checked the other
transports and found that they were all missing the MODULE_ALIAS as well.
I felt it was necessary to add them, so I sent this patch.

Quoted 6 lines

As a reminder:  if you want that to go anywhere you need to engage with
the nvme technical working group, which requires a nvme membership first.  There will be no point in posting or even discussing this on Linux mailing lists if it isn't approved by nvme.

Thank you for the reminder - that was extremely helpful. I've been struggling to figure out how to get nvme mptcp support upstream.

I left SUSE two years ago, and my current employer does not have a nvme membership. I will work internally to push the company to apply for one, and then try to join the nvme technical working group to move this forward.

By the way, I will be presenting a topic on nvme mptcp [1] at next month's LSF/MM/BPF 2026 conference. If anyone has any thoughts or feedback on this topic, please feel free to share them with me.

Thank you very much.
-Geliang

[1]
https://lore.kernel.org/linux-nvme/[email protected]/

maintainer Applied
#3 lore raw
In reply to Geliang Tang
Quoted 6 lines · Geliang Tang

From: Geliang Tang <[email protected]>

The generic fabrics layer uses request_module("nvme-%s", opts->transport) to auto-load transport modules. Currently, the nvme-tcp, nvme-rdma, and nvme-fc modules lack MODULE_ALIAS entries for these names, which prevents the kernel from automatically finding and loading them when requested.

Thanks, applied to nvme-7.1.