[PATCH 1/3] nvme-fabrics: factor out auth code into helper
Hannes Reinecke
hare at suse.de
Thu May 23 02:35:54 PDT 2024
On 2/8/24 07:24, Chaitanya Kulkarni wrote:
> Post connect command authentication handling code is repeated into in
> nvmf_connect_admin_queue() and nvmf_connect_io_queue().
>
> Add a helper to handle post connect command authentication helper. Use
> the same helper in nvmf_connect_admin_queue(). This also removes
> authentication specific code from a build where authentication feature
> is not configured.
>
> Signed-off-by: Chaitanya Kulkarni <kch at nvidia.com>
> ---
> drivers/nvme/host/auth.c | 32 ++++++++++++++++++++++++++++++++
> drivers/nvme/host/fabrics.c | 25 +------------------------
> drivers/nvme/host/nvme.h | 8 ++++++++
> 3 files changed, 41 insertions(+), 24 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
More information about the Linux-nvme
mailing list