Skip to content

RFC Make Link Status on Close Configurable

Ciara Loftus dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ethdev: add set link state on close APIdoc/guides/rel_notes/release_25_11.rst lib/ethdev/ethdev_driver.h lib/ethdev/ethdev_trace.h +3 more+84 -03 replies
2/3net/ice: implement the link state on close device opdrivers/net/intel/ice/ice_ethdev.c drivers/net/intel/ice/ice_ethdev.h+20 -10 replies
3/3app/testpmd: support link state on close ethdev APIapp/test-pmd/cmdline.c app/test-pmd/config.c app/test-pmd/parameters.c +3 more+125 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.34.1