Skip to content

ethdev: rework config restore

Dariusz Sosnowski dpdk-dev 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v24 patches 2 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Change type for restore flags to uint64_t.
- Return restore flags from rte_eth_get_restore_flags() directly, instead of returning through pointer.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ethdev: rework config restorelib/ethdev/rte_ethdev.c+29 -50 replies
2/4ethdev: add get restore flags driver callbacklib/ethdev/ethdev_driver.c lib/ethdev/ethdev_driver.h lib/ethdev/version.map+76 -00 replies
3/4ethdev: restore config only when requestedlib/ethdev/rte_ethdev.c+21 -100 replies
4/4net/mlx5: disable config restoredrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_ethdev.c+22 -00 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFerruh Yigit
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] ethdev: rework config restore

This patch series reworks the config restore procedure, so that drivers are able to enable/disable certain parts of it. Drivers can provide get_restore_flags() callback,
which will indicate to ethdev library what configuration to restore.

If callback is not defined, then ethdev assumes that
all configuration must be restored, preserving the current behavior for all drivers.

This patch series also includes implementation of get_restore_flags() for mlx5 PMD, which does not require config restore.

RFC: https://inbox.dpdk.org/dev/[email protected]/

v3:
- Change type for restore flags to uint64_t.
- Return restore flags from rte_eth_get_restore_flags() directly, instead of returning through pointer.
v2:
- Fix typos in API docs.

Dariusz Sosnowski (4):
ethdev: rework config restore
ethdev: add get restore flags driver callback
ethdev: restore config only when requested
net/mlx5: disable config restore

 drivers/net/mlx5/mlx5.c        |  2 ++
 drivers/net/mlx5/mlx5.h        |  2 ++
 drivers/net/mlx5/mlx5_ethdev.c | 18 ++++++++++
 lib/ethdev/ethdev_driver.c     |  9 +++++
 lib/ethdev/ethdev_driver.h     | 66 ++++++++++++++++++++++++++++++++++
 lib/ethdev/rte_ethdev.c        | 49 +++++++++++++++++++++----
 lib/ethdev/version.map         |  1 +
 7 files changed, 140 insertions(+), 7 deletions(-)

--
2.39.5