[PATCHv2] nvme: fixup nvme auth host/target dependency
Hannes Reinecke
hare at suse.de
Thu Oct 30 23:57:47 PDT 2025
On 10/31/25 01:26, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
>
> Converge the enabling of nvme-auth for both host or target into a single
> selection and implementation. The selection must inherit the strongest
> config selection of either target or host, so some Kconfig trickery is
> used to make that happen.
>
> Cc: Hannes Reinecke <hare at suse.de>
> Fixes: f59ae5c9e356b5e ("nvme: parse dhchap keys during option parsing")
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202510100105.cibujuUJ-lkp@intel.com/
> Signed-off-by: Keith Busch <kbusch at kernel.org>
> ---
> v1->v2:
>
> Instead of keeping auth support for host and target split, their
> destiny is converged and so is the implementation.
>
> drivers/nvme/common/Kconfig | 18 ++++++++++++++++--
> drivers/nvme/host/Kconfig | 10 +++-------
> drivers/nvme/host/nvme.h | 9 ---------
> drivers/nvme/target/Kconfig | 10 +++-------
> drivers/nvme/target/nvmet.h | 7 -------
> include/linux/nvme-auth.h | 11 +++++++++++
> 6 files changed, 33 insertions(+), 32 deletions(-)
>
Thank you. That's what I had in mind.
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
More information about the Linux-nvme
mailing list