Skip to contentSkip to conversation

rdma_rxe: Ensure rdma_rxe init occurs at correct time

PATCH Applied Stephen Bates 2 participants 2 messages Sep 23, 2016 – Oct 1, 2016 1 message not in the archive

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

PATCH 1/1 rdma_rxe: Ensure rdma_rxe init occurs at correct time

This patch is based off v4.8-rc6 with the recent rxe bugfix patchset applied [1].

There is a problem when CONFIG_RDMA_RXE=y and CONFIG_IPV6=y. This results in the rdma_rxe initialization occurring before the IPv6 services are ready. This patch delays the initialization of rdma_rxe until after the IPv6 services are ready. This fix is based on one proposed by Logan Gunthorpe on a much older code base [2].

[1] http://marc.info/?l=linux-rdma&m=147307739626544&w=2

[2] https://github.com/sbates130272/qemu-minimal/blob/rdma/patches/\
0001-Changes-needed-to-use-rxe-compiled-into-the-kernel.patch

Changes since v0:
Improved the commit message
Added a Reviewed-by tag from Yonatan

---
 drivers/infiniband/sw/rxe/rxe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/sw/rxe/rxe.c +1 -1
index 08e09d9..97bc74a 100644
@@ -392,5 +392,5 @@ static void __exit rxe_module_exit(void)
 	pr_info("rxe: unloaded\n");
 }
 
-module_init(rxe_module_init);
+late_initcall(rxe_module_init);
 module_exit(rxe_module_exit);

--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · Stephen Bates

This patch is based off v4.8-rc6 with the recent rxe bugfix patchset applied [1].

There is a problem when CONFIG_RDMA_RXE=y and CONFIG_IPV6=y. This results in the rdma_rxe initialization occurring before the IPv6 services are ready. This patch delays the initialization of rdma_rxe until after the IPv6 services are ready. This fix is based on one proposed by Logan Gunthorpe on a much older code base [2].

Quoted 4 lines

[1] http://marc.info/?l=linux-rdma&m=147307739626544&w=2

[2] https://github.com/sbates130272/qemu-minimal/blob/rdma/patches/\
0001-Changes-needed-to-use-rxe-compiled-into-the-kernel.patch

Thanks, applied.

Signature · 2 lines
Doug Ledford <[email protected]>
    GPG Key ID: 0E572FDD