Re: [dpdk-dev] [PATCH v4 2/3] net/i40e: fix return value
From: Zhang, Qi Z <hidden>
Date: 2021-01-08 08:21:29
From: Zhang, Qi Z <hidden>
Date: 2021-01-08 08:21:29
-----Original Message----- From: Zhang,Alvin <redacted> Sent: Friday, January 8, 2021 1:36 PM To: Guo, Jia <redacted>; Xing, Beilei <redacted>; Zhang, Qi Z [off-list ref]; Su, Simei [off-list ref]; Yang, Qiming [off-list ref] Cc: dev@dpdk.org; Zhang, AlvinX <redacted>; stable@dpdk.org Subject: [PATCH v4 2/3] net/i40e: fix return value From: Alvin Zhang <redacted> The api should return the system error status, but it returned the hardware error status, this is confused for the caller. This patch adds check on hardware execution status and returns -EIO in case of hardware execution failure. Signed-off-by: Alvin Zhang <redacted>
Acked-by: Qi Zhang <redacted> Applied to dpdk-next-net-intel. Thanks Qi