libnvme introduced a specific error code (NVME_CONNECT_ADDRNOTAVAIL)
when the address is not available. Previously, the generic error
code (NVME_CONNENCT_WRITE) was return in this case.
Signed-off-by: Stuart Hayes <stuart_hayes@dell.com>
[dwagner: added commit message]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
* obtains a different local IP address than the
* firmware had. Retry without host_traddr.
*/
- if (ret == -1 && errno == ENVME_CONNECT_WRITE &&
+ if (ret == -1 && errno == ENVME_CONNECT_ADDRNOTAVAIL &&
!strcmp((*ss)->transport, "tcp") &&
strlen(hfi->tcp_info.dhcp_server_ipaddr) > 0) {
nvme_free_ctrl(c);