xref: /linux/drivers/nvme/host/Kconfig (revision 26bb0d3f38a764b743a3ad5c8b6e5b5044d7ceb4)
1# SPDX-License-Identifier: GPL-2.0-only
2config NVME_CORE
3	tristate
4
5config BLK_DEV_NVME
6	tristate "NVM Express block device"
7	depends on PCI && BLOCK
8	select NVME_CORE
9	help
10	  The NVM Express driver is for solid state drives directly
11	  connected to the PCI or PCI Express bus.  If you know you
12	  don't have one of these, it is safe to answer N.
13
14	  To compile this driver as a module, choose M here: the
15	  module will be called nvme.
16
17config NVME_MULTIPATH
18	bool "NVMe multipath support"
19	depends on NVME_CORE
20	help
21	   This option enables support for multipath access to NVMe
22	   subsystems.  If this option is enabled only a single
23	   /dev/nvmeXnY device will show up for each NVMe namespace,
24	   even if it is accessible through multiple controllers.
25
26config NVME_VERBOSE_ERRORS
27	bool "NVMe verbose error reporting"
28	depends on NVME_CORE
29	help
30	   This option enables verbose reporting for NVMe errors. The
31	   error translation table will grow the kernel image size by
32	   about 4 KB.
33
34config NVME_HWMON
35	bool "NVMe hardware monitoring"
36	depends on (NVME_CORE=y && HWMON=y) || (NVME_CORE=m && HWMON)
37	help
38	  This provides support for NVMe hardware monitoring. If enabled,
39	  a hardware monitoring device will be created for each NVMe drive
40	  in the system.
41
42config NVME_FABRICS
43	select NVME_CORE
44	select NVME_KEYRING if NVME_TCP_TLS
45	tristate
46
47config NVME_RDMA
48	tristate "NVM Express over Fabrics RDMA host driver"
49	depends on INFINIBAND && INFINIBAND_ADDR_TRANS && BLOCK
50	select NVME_FABRICS
51	select SG_POOL
52	help
53	  This provides support for the NVMe over Fabrics protocol using
54	  the RDMA (Infiniband, RoCE, iWarp) transport.  This allows you
55	  to use remote block devices exported using the NVMe protocol set.
56
57	  To configure a NVMe over Fabrics controller use the nvme-cli tool
58	  from https://github.com/linux-nvme/nvme-cli.
59
60	  If unsure, say N.
61
62config NVME_FC
63	tristate "NVM Express over Fabrics FC host driver"
64	depends on BLOCK
65	depends on HAS_DMA
66	select NVME_FABRICS
67	select SG_POOL
68	help
69	  This provides support for the NVMe over Fabrics protocol using
70	  the FC transport.  This allows you to use remote block devices
71	  exported using the NVMe protocol set.
72
73	  To configure a NVMe over Fabrics controller use the nvme-cli tool
74	  from https://github.com/linux-nvme/nvme-cli.
75
76	  If unsure, say N.
77
78config NVME_TCP
79	tristate "NVM Express over Fabrics TCP host driver"
80	depends on INET
81	depends on BLOCK
82	select NVME_FABRICS
83	select CRYPTO
84	select CRYPTO_CRC32C
85	help
86	  This provides support for the NVMe over Fabrics protocol using
87	  the TCP transport.  This allows you to use remote block devices
88	  exported using the NVMe protocol set.
89
90	  To configure a NVMe over Fabrics controller use the nvme-cli tool
91	  from https://github.com/linux-nvme/nvme-cli.
92
93	  If unsure, say N.
94
95config NVME_TCP_TLS
96	bool "NVMe over Fabrics TCP TLS encryption support"
97	depends on NVME_TCP
98	select NET_HANDSHAKE
99	select KEYS
100	help
101	  Enables TLS encryption for NVMe TCP using the netlink handshake API.
102
103	  The TLS handshake daemon is availble at
104	  https://github.com/oracle/ktls-utils.
105
106	  If unsure, say N.
107
108config NVME_HOST_AUTH
109	bool "NVMe over Fabrics In-Band Authentication in host side"
110	depends on NVME_CORE
111	select NVME_AUTH
112	select NVME_KEYRING if NVME_TCP_TLS
113	help
114	  This provides support for NVMe over Fabrics In-Band Authentication in
115	  host side.
116
117	  If unsure, say N.
118
119config NVME_APPLE
120	tristate "Apple ANS2 NVM Express host driver"
121	depends on OF && BLOCK
122	depends on APPLE_RTKIT && APPLE_SART
123	depends on ARCH_APPLE || COMPILE_TEST
124	select NVME_CORE
125	help
126	  This provides support for the NVMe controller embedded in Apple SoCs
127	  such as the M1.
128
129	  To compile this driver as a module, choose M here: the
130	  module will be called nvme-apple.
131