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