[PATCH v2] net/iavf: add VF reset check

Zhang, Qi Z qi.z.zhang at intel.com
Fri Jun 2 05:25:41 CEST 2023



> -----Original Message-----
> From: Zeng, ZhichaoX <zhichaox.zeng at intel.com>
> Sent: Friday, June 2, 2023 10:38 AM
> To: dev at dpdk.org
> Cc: Zhang, Qi Z <qi.z.zhang at intel.com>; Zeng, ZhichaoX
> <zhichaox.zeng at intel.com>; Wang, Liang-min <liang-min.wang at intel.com>;
> Wu, Jingjing <jingjing.wu at intel.com>; Xing, Beilei <beilei.xing at intel.com>
> Subject: [PATCH v2] net/iavf: add VF reset check
> 
> In the current implementation, after application calls rte_eth_dev_reset, it
> has no way to know if reset has been completed, and if the virtual channel
> command is called before it is completed, it may cause the dev to be
> abnormal. To avoid this issue, an uncertain delay need to be added.
> 
> This commit adds a VF reset check before the dev_reset to inform the
> application not to invoke any virtual channel commands, to avoid making the
> device to be abnormal.
> 
> Suggested-by: Liang-Min Larry Wang <liang-min.wang at intel.com>
> Signed-off-by: Zhichao Zeng <zhichaox.zeng at intel.com>

Acked-by: Qi Zhang <qi.z.zhang at intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi



More information about the dev mailing list