Re: [dpdk-dev] [PATCH v4 2/3] net/i40e: fix return value

2021-01-08 Thread Zhang, Qi Z
> -Original Message- > From: Zhang,Alvin > Sent: Friday, January 8, 2021 1:36 PM > To: Guo, Jia ; Xing, Beilei ; Zhang, > Qi Z ; Su, Simei ; Yang, Qiming > > Cc: dev@dpdk.org; Zhang, AlvinX ; sta...@dpdk.org > Subject: [PATCH v4 2/3] net/i40e: fix return value > > From: Alvin Zhang >

[dpdk-dev] [PATCH v4 2/3] net/i40e: fix return value

2021-01-07 Thread Zhang,Alvin
From: Alvin Zhang 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 Fixes: 1d4b2b4966bb