Re: [PATCH 10/12] nvmet: Implement basic In-Band Authentication
From: Sagi Grimberg <sagi@grimberg.me>
Date: 2021-09-26 14:31:21
Also in:
linux-nvme
From: Sagi Grimberg <sagi@grimberg.me>
Date: 2021-09-26 14:31:21
Also in:
linux-nvme
+int nvmet_setup_auth(struct nvmet_ctrl *ctrl)
+{
+ int ret = 0;
+ struct nvmet_host_link *p;
+ struct nvmet_host *host = NULL;
+ const char *hash_name;
+
+ down_read(&nvmet_config_sem);
+ if (ctrl->subsys->type == NVME_NQN_DISC)
+ goto out_unlock;+ if (ctrl->subsys->allow_any_host) + goto out_unlock;