[PATCH v5 6/6] nvmet: return DHCHAP status codes from nvmet_setup_auth()

Sagi Grimberg sagi at grimberg.me
Tue Apr 9 13:23:25 PDT 2024



On 09/04/2024 12:35, Daniel Wagner wrote:
> From: Hannes Reinecke <hare at kernel.org>
>
> A failure in nvmet_setup_auth() does not mean that the NVMe
> authentication command failed, so we should rather return a protocol
> error with a 'failure1' response than an NVMe status.
>
> Also update the type used for dhchap_step and dhchap_status to u8 to
> avoid confusions with nvme status. Furthermore, split dhchap_status and
> nvme status so we don't accidentally mix these return values.

What is the implications of this on the host behavior? In other
words, why is this a part of the series?



More information about the Linux-nvme mailing list