DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/iavf: fix dead store on reset path
@ 2026-09-25  8:58 Ciara Loftus
  2026-09-25 12:04 ` Burakov, Anatoly
  0 siblings, 1 reply; 4+ messages in thread
From: Ciara Loftus @ 2026-09-25  8:58 UTC (permalink / raw)
  To: dev; +Cc: anurag.mandal, Ciara Loftus

When dev_start fails during reset recovery, the code defers the start
to the next link-up event and resets ret to 0 to avoid treating this
as an error. This is redundant since ret is unconditionally
overwritten by the return value of iavf_post_reset_reconfig()
immediately after. Remove the dead assignment.

Fixes: 9aac2219dc2a ("net/iavf: defer device start when PF VSI not ready")

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
---
 drivers/net/intel/iavf/iavf_ethdev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/intel/iavf/iavf_ethdev.c b/drivers/net/intel/iavf/iavf_ethdev.c
index a8daa507bb..7915aef348 100644
--- a/drivers/net/intel/iavf/iavf_ethdev.c
+++ b/drivers/net/intel/iavf/iavf_ethdev.c
@@ -3513,7 +3513,6 @@ iavf_handle_hw_reset(struct rte_eth_dev *dev, bool vf_initiated_reset)
 				    ret);
 			vf->start_pending = true;
 			dev->data->dev_started = 0;
-			ret = 0;
 		}
 	}
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-25 14:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-25  8:58 [PATCH] net/iavf: fix dead store on reset path Ciara Loftus
2026-09-25 12:04 ` Burakov, Anatoly
2026-09-25 14:33   ` Loftus, Ciara
2026-09-25 14:52     ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox