]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nvmet: implement unique discovery NQN
authorHannes Reinecke <hare@kernel.org>
Wed, 3 Apr 2024 11:31:14 +0000 (13:31 +0200)
committerKeith Busch <kbusch@kernel.org>
Thu, 4 Apr 2024 15:35:49 +0000 (08:35 -0700)
commit95409e277d8343810adf8700d29d4329828d452b
tree750aea2f063bac98adccc85019353960acfa378e
parent0551ec93a00d935efd86b45bf70cefdc4e515b65
nvmet: implement unique discovery NQN

Unique discovery NQNs allow to differentiate between discovery
services from (typically physically separate) NVMe-oF subsystems.
This is required for establishing secured connections as otherwise
the credentials won't be unique and the integrity of the connection
cannot be guaranteed.
This patch adds a configfs attribute 'discovery_nqn' in the 'nvmet'
configfs directory to specify the unique discovery NQN.

Signed-off-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/configfs.c
drivers/nvme/target/core.c