[PATCH] nvme-fabrics: decode host pathing error for connect

Himanshu Madhani himanshu.madhani at oracle.com
Fri May 21 10:27:48 PDT 2021



On 5/21/21 3:23 AM, Hannes Reinecke wrote:
> Add an additional decoding for 'host pathing error' during connect.
> 
> Signed-off-by: Hannes Reinecke <hare at suse.de>
> ---
>   drivers/nvme/host/fabrics.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
> index a2bb7fc63a73..34a84d2086c7 100644
> --- a/drivers/nvme/host/fabrics.c
> +++ b/drivers/nvme/host/fabrics.c
> @@ -336,6 +336,11 @@ static void nvmf_log_connect_error(struct nvme_ctrl *ctrl,
>   			cmd->connect.recfmt);
>   		break;
>   
> +	case NVME_SC_HOST_PATH_ERROR:
> +		dev_err(ctrl->device,
> +			"Connect command failed: host path error\n");
> +		break;
> +
>   	default:
>   		dev_err(ctrl->device,
>   			"Connect command failed, error wo/DNR bit: %d\n",
> 

Reviewed-by: Himanshu Madhani <himanshu.madhani at oracle.com>

-- 
Himanshu Madhani                                Oracle Linux Engineering



More information about the Linux-nvme mailing list