Skip to content

Commit

Permalink
net/iavf: fix device stop during reset
Browse files Browse the repository at this point in the history
[ upstream commit 24b8bc86dc489ab77d7de7626cc6af7ac9eaba0b ]

The rte_eth_dev_stop will return wrong value as error will return from
iavf PMD during device reset.

This patch is a work around to fix it by return 0 in dev_stop during
device reset.

Fixes: 69dd4c3 ("net/avf: enable queue and device")

Signed-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
zengzhichao233 authored and kevintraynor committed Mar 21, 2023
1 parent e71d71b commit 35f9110
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/iavf/iavf_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,9 @@ iavf_dev_stop(struct rte_eth_dev *dev)

PMD_INIT_FUNC_TRACE();

if (vf->vf_reset)
return 0;

if (adapter->closed)
return -1;

Expand Down

0 comments on commit 35f9110

Please sign in to comment.