Skip to content

Commit e5c0c79

Browse files
aarnaudsmira
authored andcommitted
feat: build NVMe target module
allow to manually load nvmet to expose disk over network using nvmeof (tcp or rdma) Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com> Signed-off-by: Anthony ARNAUD <github@anthony-arnaud.fr>
1 parent cb39126 commit e5c0c79

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

kernel/build/config-amd64

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,10 +2040,18 @@ CONFIG_NVME_MULTIPATH=y
20402040
# CONFIG_NVME_VERBOSE_ERRORS is not set
20412041
CONFIG_NVME_HWMON=y
20422042
CONFIG_NVME_FABRICS=y
2043-
# CONFIG_NVME_RDMA is not set
2043+
CONFIG_NVME_RDMA=m
20442044
CONFIG_NVME_FC=y
20452045
CONFIG_NVME_TCP=y
20462046
CONFIG_NVME_AUTH=y
2047+
CONFIG_NVME_TARGET=m
2048+
CONFIG_NVME_TARGET_PASSTHRU=y
2049+
CONFIG_NVME_TARGET_LOOP=m
2050+
CONFIG_NVME_TARGET_RDMA=m
2051+
CONFIG_NVME_TARGET_FC=m
2052+
# CONFIG_NVME_TARGET_FCLOOP is not set
2053+
CONFIG_NVME_TARGET_TCP=m
2054+
CONFIG_NVME_TARGET_AUTH=y
20472055
# end of NVME Support
20482056

20492057
#
@@ -2387,6 +2395,7 @@ CONFIG_GENEVE=y
23872395
# CONFIG_AMT is not set
23882396
# CONFIG_MACSEC is not set
23892397
CONFIG_NETCONSOLE=y
2398+
# CONFIG_NETCONSOLE_DYNAMIC is not set
23902399
# CONFIG_NETCONSOLE_EXTENDED_LOG is not set
23912400
CONFIG_NETPOLL=y
23922401
CONFIG_NET_POLL_CONTROLLER=y
@@ -4778,6 +4787,7 @@ CONFIG_INFINIBAND=y
47784787
# CONFIG_INFINIBAND_USER_MAD is not set
47794788
# CONFIG_INFINIBAND_USER_ACCESS is not set
47804789
CONFIG_INFINIBAND_ADDR_TRANS=y
4790+
CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y
47814791
CONFIG_INFINIBAND_VIRT_DMA=y
47824792
# CONFIG_INFINIBAND_BNXT_RE is not set
47834793
# CONFIG_INFINIBAND_CXGB4 is not set
@@ -5336,6 +5346,7 @@ CONFIG_NVMEM_SYSFS=y
53365346
# CONFIG_SLIMBUS is not set
53375347
# CONFIG_INTERCONNECT is not set
53385348
# CONFIG_COUNTER is not set
5349+
# CONFIG_MOST is not set
53395350
# CONFIG_PECI is not set
53405351
# CONFIG_HTE is not set
53415352
# end of Device Drivers
@@ -5370,6 +5381,7 @@ CONFIG_XFS_POSIX_ACL=y
53705381
# CONFIG_XFS_WARN is not set
53715382
# CONFIG_XFS_DEBUG is not set
53725383
# CONFIG_GFS2_FS is not set
5384+
# CONFIG_OCFS2_FS is not set
53735385
CONFIG_BTRFS_FS=m
53745386
CONFIG_BTRFS_FS_POSIX_ACL=y
53755387
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
@@ -5463,7 +5475,7 @@ CONFIG_HUGETLB_PAGE=y
54635475
CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y
54645476
# CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON is not set
54655477
CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
5466-
# CONFIG_CONFIGFS_FS is not set
5478+
CONFIG_CONFIGFS_FS=y
54675479
CONFIG_EFIVAR_FS=y
54685480
# end of Pseudo filesystems
54695481

@@ -5611,6 +5623,7 @@ CONFIG_NLS_ISO8859_1=y
56115623
# CONFIG_NLS_MAC_TURKISH is not set
56125624
CONFIG_NLS_UTF8=y
56135625
CONFIG_NLS_UCS2_UTILS=y
5626+
# CONFIG_DLM is not set
56145627
# CONFIG_UNICODE is not set
56155628
CONFIG_IO_WQ=y
56165629
# end of File systems

kernel/build/config-arm64

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,11 +2314,18 @@ CONFIG_NVME_MULTIPATH=y
23142314
# CONFIG_NVME_VERBOSE_ERRORS is not set
23152315
CONFIG_NVME_HWMON=y
23162316
CONFIG_NVME_FABRICS=y
2317-
# CONFIG_NVME_RDMA is not set
2317+
CONFIG_NVME_RDMA=m
23182318
CONFIG_NVME_FC=y
23192319
CONFIG_NVME_TCP=y
23202320
CONFIG_NVME_AUTH=y
2321-
# CONFIG_NVME_TARGET is not set
2321+
CONFIG_NVME_TARGET=m
2322+
CONFIG_NVME_TARGET_PASSTHRU=y
2323+
CONFIG_NVME_TARGET_LOOP=m
2324+
CONFIG_NVME_TARGET_RDMA=m
2325+
CONFIG_NVME_TARGET_FC=m
2326+
# CONFIG_NVME_TARGET_FCLOOP is not set
2327+
CONFIG_NVME_TARGET_TCP=m
2328+
CONFIG_NVME_TARGET_AUTH=y
23222329
# end of NVME Support
23232330

23242331
#

0 commit comments

Comments
 (0)