DPDK patches and discussions
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] Make Link Status on Close Configurable
@ 2025-08-29 14:02 Ciara Loftus
  2025-08-29 14:02 ` [RFC PATCH 1/3] ethdev: add set link state on close API Ciara Loftus
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ciara Loftus @ 2025-08-29 14:02 UTC (permalink / raw)
  To: dev; +Cc: Ciara Loftus

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


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

end of thread, other threads:[~2025-08-29 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-29 14:02 [RFC PATCH 0/3] Make Link Status on Close Configurable Ciara Loftus
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

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).