devlink: params cleanups and devl_param_driverinit_value_get() fix
Status from this message: This series was applied to netdev/net-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest7 patches 9 repliesApplied 7/7
- v17 patches 16 repliesSuperseded
Changes in v2 from the cover letter
- a small bug was fixed in patch #2, the rest of the code stays the same so I left review/ack tags attached to them
Patches in v2 All 7 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | devlink: don't use strcpy() to copy param valuenet/ | +3 | 1 reply | Applied |
| 2/7 | devlink: make sure driver does not read updated driverinit param before reloadinclude/ net/ net/ +1 more | +32 | 1 reply | Applied |
| 3/7 | devlink: fix the name of value arg of devl_param_driverinit_value_get()include/ net/ | +5 | 1 reply | Applied |
| 4/7 | devlink: use xa_for_each_start() helper in devlink_nl_cmd_port_get_dump_one()net/ | +2 | 1 reply | Applied |
| 5/7 | devlink: convert param list to xarraynet/ net/ net/ | +39 | 1 reply | Applied |
| 6/7 | devlink: allow to call devl_param_driverinit_value_get() without holding instance locknet/ | +11 | 3 replies | Applied |
| 7/7 | devlink: add forgotten devlink instance lock assertion to devl_param_driverinit_value_set()net/ | +2 | 1 reply | Applied |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Simon Horman | Jakub Kicinski | Jacob Keller | Kim Phillips |
|---|---|---|---|---|
| 1/7 | R-b | A-b | R-b | |
| 2/7 | R-b | |||
| 3/7 | R-b | A-b | R-b | |
| 4/7 | R-b | A-b | R-b | |
| 5/7 | R-b | A-b | R-b | |
| 6/7 | R-b | A-b | R-b | T-b |
| 7/7 | R-b | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [patch net-next v2 0/7] devlink: params cleanups and devl_param_driverinit_value_get() fix
From: Jiri Pirko <[email protected]>
The primary motivation of this patchset is the patch #6, which fixes an issue introduced by 075935f0ae0f ("devlink: protect devlink param list by instance lock") and reported by Kim Phillips <[email protected]>
(https://lore.kernel.org/netdev/[email protected]/)
and my colleagues doing mlx5 driver regression testing.
The basis idea is that devl_param_driverinit_value_get() could be possible to the called without holding devlink intance lock in most of the cases (all existing ones in the current codebase), which would fix some mlx5 flows where the lock is not held.
To achieve that, make sure that the param value does not change between reloads with patch #2.
Also, convert the param list to xarray which removes the worry about list_head consistency when doing lockless lookup.
The rest of the patches are doing some small related cleanup of things that poke me in the eye during the work.
---v1->v2:
- a small bug was fixed in patch #2, the rest of the code stays the same so I left review/ack tags attached to them
Jiri Pirko (7):
devlink: don't use strcpy() to copy param value
devlink: make sure driver does not read updated driverinit param
before reload
devlink: fix the name of value arg of
devl_param_driverinit_value_get()
devlink: use xa_for_each_start() helper in
devlink_nl_cmd_port_get_dump_one()
devlink: convert param list to xarray
devlink: allow to call devl_param_driverinit_value_get() without
holding instance lock
devlink: add forgotten devlink instance lock assertion to
devl_param_driverinit_value_set()
include/net/devlink.h | 6 +- net/devlink/core.c | 4 +- net/devlink/dev.c | 3 + net/devlink/devl_internal.h | 5 +- net/devlink/leftover.c | 139 ++++++++++++++++++++---------------- 5 files changed, 91 insertions(+), 66 deletions(-)
Signature · 1 line
2.39.0