DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ciara Loftus <ciara.loftus@intel.com>
To: dev@dpdk.org
Cc: bruce.richardson@intel.com, Ciara Loftus <ciara.loftus@intel.com>,
	stable@dpdk.org
Subject: [PATCH v2 3/3] net/ice: fix adapter stopped on device start error
Date: Thu,  9 Jul 2026 11:25:56 +0000	[thread overview]
Message-ID: <20260709112556.1765262-4-ciara.loftus@intel.com> (raw)
In-Reply-To: <20260709112556.1765262-1-ciara.loftus@intel.com>

Currently, `adapter_stopped` is cleared during device startup but is not
restored to true if startup fails partway through. Reset `adapter_stopped`
to true on the device startup error path to accurately reflect device state
after a failed start.

Fixes: 437dbd2fd428 ("net/ice: support 1PPS")
Cc: stable@dpdk.org

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
---
 drivers/net/intel/ice/ice_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index 8db5168b88..76b8ff0a72 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -4582,6 +4582,8 @@ ice_dev_start(struct rte_eth_dev *dev)
 	for (i = 0; i < nb_txq; i++)
 		ice_tx_queue_stop(dev, i);
 
+	pf->adapter_stopped = true;
+
 	return -EIO;
 }
 
-- 
2.43.0


  parent reply	other threads:[~2026-07-09 11:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-30 14:16 [PATCH 0/2] net/intel: fix link status when interrupt delivery unavailable Ciara Loftus
2026-06-30 14:16 ` [PATCH 1/2] net/ice: poll AdminQ if " Ciara Loftus
2026-07-01 11:26   ` Bruce Richardson
2026-07-09 10:54     ` Loftus, Ciara
2026-06-30 14:16 ` [PATCH 2/2] net/i40e: activate alarm " Ciara Loftus
2026-07-09 11:25 ` [PATCH v2 0/3] net/intel: fix link status when " Ciara Loftus
2026-07-09 11:25   ` [PATCH v2 1/3] net/ice: poll AdminQ if " Ciara Loftus
2026-07-09 11:25   ` [PATCH v2 2/3] net/i40e: activate alarm " Ciara Loftus
2026-07-09 11:25   ` Ciara Loftus [this message]
2026-07-10  9:22   ` [PATCH v2 0/3] net/intel: fix link status when " Bruce Richardson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260709112556.1765262-4-ciara.loftus@intel.com \
    --to=ciara.loftus@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox