net/iavf: fix dev stop return value
PATCH 1/1 net/iavf: fix dev stop return value
The rte_eth_dev_stop will return wrong value as error will return from iavf PMD during device reset.
This patch is a around to fix it by return 0 in dev_stop during device reset.
--- drivers/net/iavf/iavf_ethdev.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/iavf/iavf_ethdev.c +3 -0
@@ -1065,6 +1065,9 @@ iavf_dev_stop(struct rte_eth_dev *dev)PMD_INIT_FUNC_TRACE (); +if (vf->vf_reset) +return 0 ; +if (adapter->closed)return -1 ;
Signature · 1 line
2.25.1
Quoted 14 lines
-----Original Message-----
From: Zeng, ZhichaoX <[email protected]>
Sent: Thursday, March 16, 2023 3:15 PM
To: [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Zhang, Qi Z <[email protected]>; Zeng, ZhichaoX <[email protected]>; Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>
Subject: [PATCH] net/iavf: fix dev stop return valueThe
rte_eth_dev_stopwill return wrong value as error will return from iavf PMD during device reset.
Quoted 6 lines
This patch is a around to fix it by return 0 in
dev_stopduring device reset.Fixes 69dd4c3d0898 ("net/avf: enable queue and device")Signed-off-by Zhichao Zeng <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi