[RFC PATCH 0/3] Make Link Status on Close Configurable

Ciara Loftus ciara.loftus at intel.com
Fri Aug 29 16:02:21 CEST 2025


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



More information about the dev mailing list