nvme-auth: auth success1 msg always includes resp
authorMark O'Donovan <shiftee@posteo.net>
Wed, 25 Oct 2023 10:51:23 +0000 (10:51 +0000)
committerKeith Busch <kbusch@kernel.org>
Mon, 6 Nov 2023 16:34:15 +0000 (08:34 -0800)
commit75276847f4e262a52ccaf1a1c6b929280ddf77f6
tree54490c1a9293d0395aba67da6319ced74b7983d4
parent1147dd0503564fa0e03489a039f9e0c748a03db4
nvme-auth: auth success1 msg always includes resp

In cases where RVALID is false, the response is still transmitted,
but is cleared to zero.

Relevant extract from the spec:
Response R2, if valid (i.e., if the RVALID field is set to 01h),
cleared to 0h otherwise

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/auth.c
include/linux/nvme.h