When creating a discovery connection the user might be using the
unique discovery NQN, so we should be calling nvme_ctrl_set_discovery_ctrl()
to mark the connection as a discovery connection.
Signed-off-by: Hannes Reinecke <hare@suse.de>
traddr, host_traddr, host_iface, trsvcid);
if (!c)
goto next;
+ nvme_ctrl_set_discovery_ctrl(c, true);
errno = 0;
ret = nvmf_add_ctrl(h, c, &cfg, false);
if (!ret) {
ret = errno;
goto out_free;
}
+ nvme_ctrl_set_discovery_ctrl(c, true);
ret = nvmf_add_ctrl(h, c, &cfg, false);
if (ret) {
nvme_msg(LOG_ERR,