xref: /openbmc/linux/drivers/nvme/target/Kconfig (revision fb37409a)
1# SPDX-License-Identifier: GPL-2.0-only
2
3config NVME_TARGET
4	tristate "NVMe Target support"
5	depends on BLOCK
6	depends on CONFIGFS_FS
7	select BLK_DEV_INTEGRITY_T10 if BLK_DEV_INTEGRITY
8	select SGL_ALLOC
9	help
10	  This enabled target side support for the NVMe protocol, that is
11	  it allows the Linux kernel to implement NVMe subsystems and
12	  controllers and export Linux block devices as NVMe namespaces.
13	  You need to select at least one of the transports below to make this
14	  functionality useful.
15
16	  To configure the NVMe target you probably want to use the nvmetcli
17	  tool from http://git.infradead.org/users/hch/nvmetcli.git.
18
19config NVME_TARGET_LOOP
20	tristate "NVMe loopback device support"
21	depends on NVME_TARGET
22	select NVME_CORE
23	select NVME_FABRICS
24	select SG_POOL
25	help
26	  This enables the NVMe loopback device support, which can be useful
27	  to test NVMe host and target side features.
28
29	  If unsure, say N.
30
31config NVME_TARGET_RDMA
32	tristate "NVMe over Fabrics RDMA target support"
33	depends on INFINIBAND && INFINIBAND_ADDR_TRANS
34	depends on NVME_TARGET
35	select SGL_ALLOC
36	help
37	  This enables the NVMe RDMA target support, which allows exporting NVMe
38	  devices over RDMA.
39
40	  If unsure, say N.
41
42config NVME_TARGET_FC
43	tristate "NVMe over Fabrics FC target driver"
44	depends on NVME_TARGET
45	depends on HAS_DMA
46	select SGL_ALLOC
47	help
48	  This enables the NVMe FC target support, which allows exporting NVMe
49	  devices over FC.
50
51	  If unsure, say N.
52
53config NVME_TARGET_FCLOOP
54	tristate "NVMe over Fabrics FC Transport Loopback Test driver"
55	depends on NVME_TARGET
56	select NVME_CORE
57	select NVME_FABRICS
58	select SG_POOL
59	depends on NVME_FC
60	depends on NVME_TARGET_FC
61	help
62	  This enables the NVMe FC loopback test support, which can be useful
63	  to test NVMe-FC transport interfaces.
64
65	  If unsure, say N.
66
67config NVME_TARGET_TCP
68	tristate "NVMe over Fabrics TCP target support"
69	depends on INET
70	depends on NVME_TARGET
71	help
72	  This enables the NVMe TCP target support, which allows exporting NVMe
73	  devices over TCP.
74
75	  If unsure, say N.
76