nvmet-tcp: add NVMe over TCP target driver
This patch implements the TCP transport driver for the NVMe over Fabrics target stack. This allows exporting NVMe over Fabrics functionality over good old TCP/IP. The driver implements the TP 8000 of how nvme over fabrics capsules and data are encapsulated in nvme-tcp pdus and exchaged on top of a TCP byte stream. nvme-tcp header and data digest are supported as well. Signed-off-by: Sagi Grimberg <sagi@lightbitslabs.com> Signed-off-by: Roy Shterman <roys@lightbitslabs.com> Signed-off-by: Solganik Alexander <sashas@lightbitslabs.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Родитель
fc221d0544
Коммит
872d26a391
|
@ -60,3 +60,13 @@ config NVME_TARGET_FCLOOP
|
||||||
to test NVMe-FC transport interfaces.
|
to test NVMe-FC transport interfaces.
|
||||||
|
|
||||||
If unsure, say N.
|
If unsure, say N.
|
||||||
|
|
||||||
|
config NVME_TARGET_TCP
|
||||||
|
tristate "NVMe over Fabrics TCP target support"
|
||||||
|
depends on INET
|
||||||
|
depends on NVME_TARGET
|
||||||
|
help
|
||||||
|
This enables the NVMe TCP target support, which allows exporting NVMe
|
||||||
|
devices over TCP.
|
||||||
|
|
||||||
|
If unsure, say N.
|
||||||
|
|
|
@ -5,6 +5,7 @@ obj-$(CONFIG_NVME_TARGET_LOOP) += nvme-loop.o
|
||||||
obj-$(CONFIG_NVME_TARGET_RDMA) += nvmet-rdma.o
|
obj-$(CONFIG_NVME_TARGET_RDMA) += nvmet-rdma.o
|
||||||
obj-$(CONFIG_NVME_TARGET_FC) += nvmet-fc.o
|
obj-$(CONFIG_NVME_TARGET_FC) += nvmet-fc.o
|
||||||
obj-$(CONFIG_NVME_TARGET_FCLOOP) += nvme-fcloop.o
|
obj-$(CONFIG_NVME_TARGET_FCLOOP) += nvme-fcloop.o
|
||||||
|
obj-$(CONFIG_NVME_TARGET_TCP) += nvmet-tcp.o
|
||||||
|
|
||||||
nvmet-y += core.o configfs.o admin-cmd.o fabrics-cmd.o \
|
nvmet-y += core.o configfs.o admin-cmd.o fabrics-cmd.o \
|
||||||
discovery.o io-cmd-file.o io-cmd-bdev.o
|
discovery.o io-cmd-file.o io-cmd-bdev.o
|
||||||
|
@ -12,3 +13,4 @@ nvme-loop-y += loop.o
|
||||||
nvmet-rdma-y += rdma.o
|
nvmet-rdma-y += rdma.o
|
||||||
nvmet-fc-y += fc.o
|
nvmet-fc-y += fc.o
|
||||||
nvme-fcloop-y += fcloop.o
|
nvme-fcloop-y += fcloop.o
|
||||||
|
nvmet-tcp-y += tcp.o
|
||||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче