]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit65f0160fb1720b8541ddfa1ec20cd6271e0d050c
tree831d521a2152c7360f5aa43ce88deee4bce959be
parent93389c7bb1d8b7e2b77ba6cecb357b6a714c3f9b
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