nvme-fc nvmet-fc: refactor for common LS definitions
authorJames Smart <jsmart2021@gmail.com>
Tue, 31 Mar 2020 16:49:48 +0000 (09:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:33 +0000 (16:18 -0600)
commitca19bcd086331ec2fa182ad8cd589014beb931be
tree2064961e84336c86312ac84e44834551d4dc8d94
parent72e6329f86c714785ac195d293cb19dd24507880
nvme-fc nvmet-fc: refactor for common LS definitions

Routines in the target will want to be used in the host as well.
Error definitions should now shared as both sides will process
requests and responses to requests.

Moved common declarations to new fc.h header kept in the host
subdirectory.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/fc.c
drivers/nvme/host/fc.h [new file with mode: 0644]
drivers/nvme/target/fc.c