]> asedeno.scripts.mit.edu Git - linux.git/commit
nvmet: refactor configfs transport type handling
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Mar 2018 19:41:34 +0000 (20:41 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Mar 2018 14:53:43 +0000 (08:53 -0600)
commita5d18612295a0556bc66e8dddb19515f262c3612
treec05c195dfc8dd0126e220667d2801e0d72b931ba
parentf871749a9fa40a1c2d09aaf66776e32a0a638881
nvmet: refactor configfs transport type handling

Have a common table of mappings from numerical transport ids to names, and
zero the transport specific area in common code in nvmet_addr_trtype_store.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/configfs.c