nvme-loop: add a NVMe loopback host driver
authorChristoph Hellwig <hch@lst.de>
Tue, 21 Jun 2016 16:04:21 +0000 (18:04 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 5 Jul 2016 17:30:36 +0000 (11:30 -0600)
commit3a85a5de29ea779634ddfd768059e06196687aba
treeb2c055a70538069b89089b17730e3a0ce0fa2452
parenta07b4970f464f13640e28e16dad6cfa33647cc99
nvme-loop: add a NVMe loopback host driver

This patch implements adds nvme-loop which allows to access local devices
exported as NVMe over Fabrics namespaces. This module can be useful for
easy evaluation, testing and also feature experimentation.

To createa nvme-loop device you need to configure the NVMe target to
export a loop port (see the nvmetcli documentaton for that) and then
connect to it using

nvme connect-all -t loop

which requires the very latest nvme-cli version with Fabrics support.

Signed-off-by: Jay Freyensee <james.p.freyensee@intel.com>
Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/Kconfig
drivers/nvme/target/Makefile
drivers/nvme/target/loop.c [new file with mode: 0644]