From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7B788A0093; Tue, 14 Jun 2022 15:49:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2091740DDD; Tue, 14 Jun 2022 15:49:23 +0200 (CEST) Received: from out162-62-58-216.mail.qq.com (out162-62-58-216.mail.qq.com [162.62.58.216]) by mails.dpdk.org (Postfix) with ESMTP id EE98B40A81 for ; Tue, 14 Jun 2022 15:49:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1655214558; bh=SPcLCIk8CUM4C9PFSqZ0+6DxqjYnngYlXPnWyRCS82I=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=wiscSwuP7eNtpv1Y7gpfn49VCDoJfc1ayamJ0wY5nkZr4c7MlQdb1XJuS7Illbkex /84LvKNsBCKJAWF+8lcMlamgwMsaRct56UQKrMmNaqGdQa16cSFuZqDqaaHiuiYTTc uc2+4NXBaumhdhNa9PFj3YzB2bWB3XC6zWamhxFU= Received: from localhost.localdomain ([202.192.80.113]) by newxmesmtplogicsvrszc8.qq.com (NewEsmtp) with SMTP id C4DB0A3F; Tue, 14 Jun 2022 21:49:13 +0800 X-QQ-mid: xmsmtpt1655214553tzu2vyb3r Message-ID: X-QQ-XMAILINFO: Md8NwmqZYy3fAQR0ZCuWqY+TtW2RaOz4zLR54aakgX9YThHurGBoS9omDjWw14 IVA0oFsFcT/C01zVggwNHQo44YsepIpBwlyWa0I/y7VNk85N1QWT0Pj+dYrWsand6tLfBCnQeFOW ZnKhHuJzjy3N0UxenrM34tMSnOtWoRPq1PJskWen70rtLLXq6pRp4/7bXfVDtIKyv6nucQOZFNX0 sMsTFoLxPQpDM+ogEqLKxu+ZFkewN+t5ePcAPeUKYYxAom7mTfgfGn0B57y9JmnEWn0QboeV1MLC VPQvuqgGFSkfBIOj0d1NwuAY1CeSNa0tSVmWFxv7rL+OZuPyyRXYWfKqNQ04sBhGbMDFpEtRloWH rrzyWl3kgFC+2r7fd2vKIpn2ANLexnw3T25LYNythbNmk5LJs0nQhjEGJMv/buCIv9/4ZeogBjF6 hJdeWQTKsg+/NQPZppjRsH7tVsogljpH9m+m8GGBjP58R/sg0VoF9VSAlqKJRjNMI0vDskYxpfnR WfGKuUbFbxuLUcveBtUMoQspRzcaHeHCPzWqSYQFEYApdt7ck7xBsrXGn/BsF3GZadv+g8pGaJZO Z0pjx8/EktNLhvrag/tbKqbJnbMCmLOAEFbKZb8hKkxCwjV6g3isrIpJF7hDDrEkG63B/8Pt1eyN P87DvEYcv2FYBaExTxyKMwpp87CsCKiSTOsJxZ8bS9TGxg7Vd07ISOaw6xL49lTQeNcEpo/P7K5b nw3oMk6afzKmrR/Rfkth0Rr6EeEZRGmhQXHnYYDpyOtk/pz+qiOUaGvHRT5SWneqk075/A0WZ1XB 3eCf9DFd2M+VVEMROlMq3dM8gQ6HPUq97jvMY12zhAwnsO2IOqLHVx8DIq6YWEAXGFPu/u06qiy7 hCbhf83aOXic0PiC1zOZRcltmMCv4+pUsTjTXilLSKPCfOB1oGIE7SQpzhYFY1++x6HqLn2kf2GU d8CPWMkvhstUnEgvrDMQ== From: 835703180@qq.com To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, Shiqi Liu <835703180@qq.com> Subject: [PATCH V2] vdpa/mlx5: return correct error code after rte_intr_instance_alloc failed Date: Tue, 14 Jun 2022 21:48:44 +0800 X-OQ-MSGID: <20220614134844.1718-1-835703180@qq.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <640b6f87-fa5f-4a94-3228-a2c880861a53@redhat.com> References: <640b6f87-fa5f-4a94-3228-a2c880861a53@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Shiqi Liu <835703180@qq.com> To Maxime, I am so sorry too late to reply your comment.My name is Shiqi Liu. I got stuck in how to reply the comment before.Now, it seenms to be ok!Maybe there will be some mistakes I have taken , when I reply,please tell me how to do it correctly! Thanks, Shiqi Liu diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_event.c b/drivers/vdpa/mlx5/mlx5_vdpa_event.c index 7167a98db0..6223afaae8 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa_event.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa_event.c @@ -395,6 +395,7 @@ mlx5_vdpa_err_event_setup(struct mlx5_vdpa_priv *priv) rte_intr_instance_alloc(RTE_INTR_INSTANCE_F_SHARED); if (priv->err_intr_handle == NULL) { DRV_LOG(ERR, "Fail to allocate intr_handle"); + rte_errno = ENOMEM; goto error; } if (rte_intr_fd_set(priv->err_intr_handle, priv->err_chnl->fd)) --