nvmet: pass back cntlid on successful completion
authorAmit Engel <amit.engel@dell.com>
Sun, 8 Aug 2021 06:20:14 +0000 (09:20 +0300)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:24 +0000 (14:42 +0200)
commite804d5abe2d74cfe23f5f83be580d1cdc9307111
tree7ad758ff36c2bf388c075d636390124ae9b40569
parent85032874f80ba17bf187de1d14d9603bf3f582b8
nvmet: pass back cntlid on successful completion

According to the NVMe specification, the response dword 0 value of the
Connect command is based on status code: return cntlid for successful
compeltion return IPO and IATTR for connect invalid parameters.  Fix
a missing error information for a zero sized queue, and return the
cntlid also for I/O queue Connect commands.

Signed-off-by: Amit Engel <amit.engel@dell.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fabrics-cmd.c