[PATCH v2 0/4] ethdev: rework config restore
Dariusz Sosnowski
dsosnowski at nvidia.com
Fri Oct 11 11:33:47 CEST 2024
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/20240918092201.33772-1-dsosnowski@nvidia.com/
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 | 3 ++
drivers/net/mlx5/mlx5_ethdev.c | 19 ++++++++++
lib/ethdev/ethdev_driver.c | 11 ++++++
lib/ethdev/ethdev_driver.h | 64 ++++++++++++++++++++++++++++++++++
lib/ethdev/rte_ethdev.c | 49 ++++++++++++++++++++++----
lib/ethdev/version.map | 1 +
7 files changed, 142 insertions(+), 7 deletions(-)
--
2.39.5
More information about the dev
mailing list