[PATCHv2] nvme: blank out authentication fabrics options if not configured
Shinichiro Kawasaki
shinichiro.kawasaki at wdc.com
Thu Nov 16 20:53:14 PST 2023
On Nov 16, 2023 / 13:14, Hannes Reinecke wrote:
> If the config option NVME_HOST_AUTH is not selected we should not
> accept the corresponding fabrics options. This allows userspace
> to detect if NVMe authentication has been enabled for the kernel.
>
> Cc: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
> Fixes: f50fff73d620 ("nvme: implement In-Band authentication")
> Signed-off-by: Hannes Reinecke <hare at suse.de>
Thanks Hannes. I prepared a patch on blktests side [1] which refers the fabrics
options. Using these changes on kernel side and blktests side, I confirmed
blktests can detect if NVMe authentication is enabled or not.
Tested-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
[1] https://github.com/kawasaki/blktests/commit/81110ce8056f16716d09774e6f237ea0393579e1
More information about the Linux-nvme
mailing list