nvme: add missing MODULE_ALIAS for fabrics transports
Subsystems (2)
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
@@ -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
@@ -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
@@ -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
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 theMODULE_ALIASas 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.
Hi Christoph,
Quoted 14 lines · Christoph Hellwig
Looks good:
Reviewed-by Christoph Hellwig <[email protected]>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 addMODULE_ALIAS("nvme-mptcp"). Then I checked the other
transports and found that they were all missing theMODULE_ALIASas 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
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 lackMODULE_ALIASentries for these names, which prevents the kernel from automatically finding and loading them when requested.
Thanks, applied to nvme-7.1.