From e5c0c79b8d62448875bb21ca5701eacccd07c7e9 Mon Sep 17 00:00:00 2001 From: Anthony ARNAUD Date: Thu, 29 Feb 2024 14:01:15 -0500 Subject: [PATCH] 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 Signed-off-by: Anthony ARNAUD --- kernel/build/config-amd64 | 17 +++++++++++++++-- kernel/build/config-arm64 | 11 +++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/kernel/build/config-amd64 b/kernel/build/config-amd64 index 81194a96..8e426f8b 100644 --- a/kernel/build/config-amd64 +++ b/kernel/build/config-amd64 @@ -2040,10 +2040,18 @@ CONFIG_NVME_MULTIPATH=y # CONFIG_NVME_VERBOSE_ERRORS is not set CONFIG_NVME_HWMON=y CONFIG_NVME_FABRICS=y -# CONFIG_NVME_RDMA is not set +CONFIG_NVME_RDMA=m CONFIG_NVME_FC=y CONFIG_NVME_TCP=y CONFIG_NVME_AUTH=y +CONFIG_NVME_TARGET=m +CONFIG_NVME_TARGET_PASSTHRU=y +CONFIG_NVME_TARGET_LOOP=m +CONFIG_NVME_TARGET_RDMA=m +CONFIG_NVME_TARGET_FC=m +# CONFIG_NVME_TARGET_FCLOOP is not set +CONFIG_NVME_TARGET_TCP=m +CONFIG_NVME_TARGET_AUTH=y # end of NVME Support # @@ -2387,6 +2395,7 @@ CONFIG_GENEVE=y # CONFIG_AMT is not set # CONFIG_MACSEC is not set CONFIG_NETCONSOLE=y +# CONFIG_NETCONSOLE_DYNAMIC is not set # CONFIG_NETCONSOLE_EXTENDED_LOG is not set CONFIG_NETPOLL=y CONFIG_NET_POLL_CONTROLLER=y @@ -4778,6 +4787,7 @@ CONFIG_INFINIBAND=y # CONFIG_INFINIBAND_USER_MAD is not set # CONFIG_INFINIBAND_USER_ACCESS is not set CONFIG_INFINIBAND_ADDR_TRANS=y +CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y CONFIG_INFINIBAND_VIRT_DMA=y # CONFIG_INFINIBAND_BNXT_RE is not set # CONFIG_INFINIBAND_CXGB4 is not set @@ -5336,6 +5346,7 @@ CONFIG_NVMEM_SYSFS=y # CONFIG_SLIMBUS is not set # CONFIG_INTERCONNECT is not set # CONFIG_COUNTER is not set +# CONFIG_MOST is not set # CONFIG_PECI is not set # CONFIG_HTE is not set # end of Device Drivers @@ -5370,6 +5381,7 @@ CONFIG_XFS_POSIX_ACL=y # CONFIG_XFS_WARN is not set # CONFIG_XFS_DEBUG is not set # CONFIG_GFS2_FS is not set +# CONFIG_OCFS2_FS is not set CONFIG_BTRFS_FS=m CONFIG_BTRFS_FS_POSIX_ACL=y # CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set @@ -5463,7 +5475,7 @@ CONFIG_HUGETLB_PAGE=y CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y # CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON is not set CONFIG_ARCH_HAS_GIGANTIC_PAGE=y -# CONFIG_CONFIGFS_FS is not set +CONFIG_CONFIGFS_FS=y CONFIG_EFIVAR_FS=y # end of Pseudo filesystems @@ -5611,6 +5623,7 @@ CONFIG_NLS_ISO8859_1=y # CONFIG_NLS_MAC_TURKISH is not set CONFIG_NLS_UTF8=y CONFIG_NLS_UCS2_UTILS=y +# CONFIG_DLM is not set # CONFIG_UNICODE is not set CONFIG_IO_WQ=y # end of File systems diff --git a/kernel/build/config-arm64 b/kernel/build/config-arm64 index d7041bf7..2474b2ce 100644 --- a/kernel/build/config-arm64 +++ b/kernel/build/config-arm64 @@ -2314,11 +2314,18 @@ CONFIG_NVME_MULTIPATH=y # CONFIG_NVME_VERBOSE_ERRORS is not set CONFIG_NVME_HWMON=y CONFIG_NVME_FABRICS=y -# CONFIG_NVME_RDMA is not set +CONFIG_NVME_RDMA=m CONFIG_NVME_FC=y CONFIG_NVME_TCP=y CONFIG_NVME_AUTH=y -# CONFIG_NVME_TARGET is not set +CONFIG_NVME_TARGET=m +CONFIG_NVME_TARGET_PASSTHRU=y +CONFIG_NVME_TARGET_LOOP=m +CONFIG_NVME_TARGET_RDMA=m +CONFIG_NVME_TARGET_FC=m +# CONFIG_NVME_TARGET_FCLOOP is not set +CONFIG_NVME_TARGET_TCP=m +CONFIG_NVME_TARGET_AUTH=y # end of NVME Support #