[PATCH libnvme] fabrics: restore hostname traddr support

Chaitanya Kulkarni chaitanyak at nvidia.com
Mon Sep 27 12:39:53 PDT 2021


> +static int hostname2traddr(nvme_ctrl_t c)
> +{
> +	struct addrinfo *host_info, hints = {.ai_family = AF_UNSPEC};
> +	char addrstr[NVMF_TRADDR_SIZE];

do we need to setup the addrstr to 0 with = { 0 }; ?

> +	const char *p;
> +	int ret;

With that comment looks good to me.

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>



More information about the Linux-nvme mailing list