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

* Re: [PATCH] net/iavf: fix dead store on reset path
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Burakov, Anatoly @ 2026-09-25 12:04 UTC (permalink / raw)
  To: Ciara Loftus, dev; +Cc: anurag.mandal

On 9/25/2026 10:58 AM, Ciara Loftus wrote:
> 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>
> ---

I wouldn't really qualify this as a bug fix except maybe static analysis 
tools might flag it so perhaps having a Fixes tag is worth it.

Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>

-- 
Thanks,
Anatoly

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

* RE: [PATCH] net/iavf: fix dead store on reset path
  2026-09-25 12:04 ` Burakov, Anatoly
@ 2026-09-25 14:33   ` Loftus, Ciara
  2026-09-25 14:52     ` Bruce Richardson
  0 siblings, 1 reply; 4+ messages in thread
From: Loftus, Ciara @ 2026-09-25 14:33 UTC (permalink / raw)
  To: Burakov, Anatoly, dev@dpdk.org; +Cc: Mandal, Anurag, Richardson, Bruce

> Subject: Re: [PATCH] net/iavf: fix dead store on reset path
> 
> On 9/25/2026 10:58 AM, Ciara Loftus wrote:
> > 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>
> > ---
> 
> I wouldn't really qualify this as a bug fix except maybe static analysis
> tools might flag it so perhaps having a Fixes tag is worth it.

Apologies this was indeed found by static analysis and should have
included the following tag, if it can be added on apply:

Coverity issue: 506150

> 
> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
> 
> --
> Thanks,
> Anatoly

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

* Re: [PATCH] net/iavf: fix dead store on reset path
  2026-09-25 14:33   ` Loftus, Ciara
@ 2026-09-25 14:52     ` Bruce Richardson
  0 siblings, 0 replies; 4+ messages in thread
From: Bruce Richardson @ 2026-09-25 14:52 UTC (permalink / raw)
  To: Loftus, Ciara; +Cc: Burakov, Anatoly, dev@dpdk.org, Mandal, Anurag

On Fri, Sep 25, 2026 at 03:33:08PM +0100, Loftus, Ciara wrote:
> > Subject: Re: [PATCH] net/iavf: fix dead store on reset path
> > 
> > On 9/25/2026 10:58 AM, Ciara Loftus wrote:
> > > 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>
> > > ---
> > 
> > I wouldn't really qualify this as a bug fix except maybe static analysis
> > tools might flag it so perhaps having a Fixes tag is worth it.
> 
> Apologies this was indeed found by static analysis and should have
> included the following tag, if it can be added on apply:
> 
> Coverity issue: 506150
> 
> > 
> > Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
> > 
Added the coverity issue tag - because otherwise I was wondering why we
were bothering with this - and applied patch to dpdk-next-net-intel

Thanks,
/Bruce

^ permalink raw reply	[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