netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next v4 00/10] devlink: linecard and reporters locking cleanup
@ 2023-01-11  9:07 Jiri Pirko
  2023-01-11  9:07 ` [patch net-next v4 01/10] devlink: remove linecards lock Jiri Pirko
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Jiri Pirko @ 2023-01-11  9:07 UTC (permalink / raw)
  To: netdev
  Cc: davem, kuba, pabeni, edumazet, michael.chan, yisen.zhuang,
	salil.mehta, jesse.brandeburg, anthony.l.nguyen, tariqt, saeedm,
	leon, idosch, petrm, mailhol.vincent, jacob.e.keller, gal

From: Jiri Pirko <jiri@nvidia.com>

This patchset does not change functionality.

Patches 1-6 removes linecards and reporters locks and reference counting,
converting them to be protected by devlink instance lock as the rest of
the objects.

Patches 7 and 8 convert linecards and reporters dumpit callbacks to
recently introduced devlink_nl_instance_iter_dump() infra.
Patch 9 removes no longer needed devlink_dump_for_each_instance_get()
helper.

The last patch adds assertion to devl_is_registered() as dependency on
other locks is removed.

---
v3->v4:
- patch #1 was removed from the set and will be sent as a part of
  another patchset
v2->v3:
- see individual patches for changelog, mainly original patch #4 was
  split into 3 patches for easier review
v1->v2:
- patch 7 bits were unsquashed to patch 8


Jiri Pirko (10):
  devlink: remove linecards lock
  devlink: remove linecard reference counting
  devlink: protect health reporter operation with instance lock
  devlink: remove reporters_lock
  devlink: remove devl_port_health_reporter_destroy()
  devlink: remove reporter reference counting
  devlink: convert linecards dump to devlink_nl_instance_iter_dump()
  devlink: convert reporters dump to devlink_nl_instance_iter_dump()
  devlink: remove devlink_dump_for_each_instance_get() helper
  devlink: add instance lock assertion in devl_is_registered()

 .../ethernet/mellanox/mlx5/core/en/health.c   |  12 +
 .../mellanox/mlx5/core/en/reporter_rx.c       |   6 +-
 .../mellanox/mlx5/core/en/reporter_tx.c       |   6 +-
 drivers/net/ethernet/mellanox/mlxsw/core.c    |   8 +-
 .../ethernet/mellanox/mlxsw/core_linecards.c  |   8 +-
 drivers/net/netdevsim/health.c                |  20 +-
 include/net/devlink.h                         |  26 +-
 net/devlink/core.c                            |   4 -
 net/devlink/devl_internal.h                   |  20 +-
 net/devlink/leftover.c                        | 428 +++++++-----------
 net/devlink/netlink.c                         |  12 +-
 11 files changed, 213 insertions(+), 337 deletions(-)

-- 
2.39.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-01-16 10:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11  9:07 [patch net-next v4 00/10] devlink: linecard and reporters locking cleanup Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 01/10] devlink: remove linecards lock Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 02/10] devlink: remove linecard reference counting Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 03/10] devlink: protect health reporter operation with instance lock Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 04/10] devlink: remove reporters_lock Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 05/10] devlink: remove devl_port_health_reporter_destroy() Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 06/10] devlink: remove reporter reference counting Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 07/10] devlink: convert linecards dump to devlink_nl_instance_iter_dump() Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 08/10] devlink: convert reporters " Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 09/10] devlink: remove devlink_dump_for_each_instance_get() helper Jiri Pirko
2023-01-11  9:07 ` [patch net-next v4 10/10] devlink: add instance lock assertion in devl_is_registered() Jiri Pirko
2023-01-12  0:12 ` [patch net-next v4 00/10] devlink: linecard and reporters locking cleanup Jacob Keller
2023-01-15  9:16 ` Leon Romanovsky
2023-01-16 10:34   ` Jiri Pirko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).