nvme-fc: Update header and host for common definitions for LS handling
authorJames Smart <jsmart2021@gmail.com>
Tue, 31 Mar 2020 16:49:52 +0000 (09:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:33 +0000 (16:18 -0600)
commitfd5a5f2213048b012bc7e19e832e9ae0ec1a2c4a
tree831d521a2152c7360f5aa43ce88deee4bce959be
parenteb4ee8f125157926cf36a3c275b04825f1bf8cfa
nvme-fc: Update header and host for common definitions for LS handling

Given that both host and target now generate and receive LS's create
a single table definition for LS names. Each tranport half will have
a local version of the table.

As Create Association LS is issued by both sides, and received by
both sides, create common routines to format the LS and to validate
the LS.

Convert the host side transport to use the new common Create
Association LS formatting routine.

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