DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ciara Loftus <ciara.loftus@intel.com>
To: dev@dpdk.org
Cc: Ciara Loftus <ciara.loftus@intel.com>
Subject: [RFC PATCH 0/3] Make Link Status on Close Configurable
Date: Fri, 29 Aug 2025 14:02:21 +0000	[thread overview]
Message-ID: <20250829140224.1748255-1-ciara.loftus@intel.com> (raw)

Most drivers bring the port link down on device close (eg. intel i40e), however
some others restore the link to its original state when the device was started
(eg. intel ice). It may be useful to be able to configure this behaviour which
is the motivation for this RFC.

This RFC proposes a way to make the link status of a port configurable
when the port is closed or stopped. Three configuration options are available:
1. down: bring (or keep) the link down
2. up: bring (or keep) the link up
3. initial: restore the link to the state it was in when the device was
started.

Ciara Loftus (3):
  ethdev: add set link state on close API
  net/ice: implement the link state on close device op
  app/testpmd: support link state on close ethdev API

 app/test-pmd/cmdline.c                      | 56 +++++++++++++++++++++
 app/test-pmd/config.c                       | 17 +++++++
 app/test-pmd/parameters.c                   | 26 ++++++++++
 app/test-pmd/testpmd.c                      | 16 ++++++
 app/test-pmd/testpmd.h                      |  3 ++
 doc/guides/rel_notes/release_25_11.rst      |  4 ++
 doc/guides/testpmd_app_ug/testpmd_funcs.rst |  7 +++
 drivers/net/intel/ice/ice_ethdev.c          | 20 +++++++-
 drivers/net/intel/ice/ice_ethdev.h          |  1 +
 lib/ethdev/ethdev_driver.h                  | 18 +++++++
 lib/ethdev/ethdev_trace.h                   |  8 +++
 lib/ethdev/ethdev_trace_points.c            |  3 ++
 lib/ethdev/rte_ethdev.c                     | 19 +++++++
 lib/ethdev/rte_ethdev.h                     | 32 ++++++++++++
 14 files changed, 229 insertions(+), 1 deletion(-)

-- 
2.34.1


             reply	other threads:[~2025-08-29 14:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-29 14:02 Ciara Loftus [this message]
2025-08-29 14:02 ` [RFC PATCH 1/3] ethdev: add set link state on close API Ciara Loftus
2025-08-29 15:19   ` Ivan Malov
2025-08-29 14:02 ` [RFC PATCH 2/3] net/ice: implement the link state on close device op Ciara Loftus
2025-08-29 14:02 ` [RFC PATCH 3/3] app/testpmd: support link state on close ethdev API Ciara Loftus

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=20250829140224.1748255-1-ciara.loftus@intel.com \
    --to=ciara.loftus@intel.com \
    --cc=dev@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;
as well as URLs for NNTP newsgroup(s).