[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230107101151.532611-1-jiri@resnulli.us>
Date: Sat, 7 Jan 2023 11:11:41 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
edumazet@...gle.com, michael.chan@...adcom.com,
yisen.zhuang@...wei.com, salil.mehta@...wei.com,
jesse.brandeburg@...el.com, anthony.l.nguyen@...el.com,
tariqt@...dia.com, saeedm@...dia.com, leon@...nel.org,
idosch@...dia.com, petrm@...dia.com, mailhol.vincent@...adoo.fr,
jacob.e.keller@...el.com, gal@...dia.com
Subject: [patch net-next v2 0/9] devlink: features, linecard and reporters locking cleanup
From: Jiri Pirko <jiri@...dia.com>
This patchset does not change functionality.
In the first patch, no longer needed devlink features are removed.
Patches 2-5 removes linecards and reporters locks and reference counting,
converting them to be protected by devlink instance lock as the rest of
the objects.
Patches 6 and 7 convert linecards and reporters dumpit callbacks to
recently introduced devlink_nl_instance_iter_dump() infra.
Patch 8 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.
---
v1->v2:
- patch 7 bits were unsquashed to patch 8.
Jiri Pirko (9):
devlink: remove devlink features
devlink: remove linecards lock
devlink: remove linecard reference counting
devlink: remove reporters_lock
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()
.../net/ethernet/broadcom/bnxt/bnxt_devlink.c | 1 -
.../hisilicon/hns3/hns3pf/hclge_devlink.c | 1 -
.../hisilicon/hns3/hns3vf/hclgevf_devlink.c | 1 -
drivers/net/ethernet/intel/ice/ice_devlink.c | 1 -
drivers/net/ethernet/mellanox/mlx4/main.c | 1 -
.../net/ethernet/mellanox/mlx5/core/devlink.c | 9 +-
.../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 | 9 +-
.../ethernet/mellanox/mlxsw/core_linecards.c | 8 +-
drivers/net/netdevsim/dev.c | 1 -
drivers/net/netdevsim/health.c | 20 +-
include/net/devlink.h | 26 +-
net/devlink/core.c | 23 -
net/devlink/devl_internal.h | 20 +-
net/devlink/leftover.c | 431 +++++++-----------
net/devlink/netlink.c | 12 +-
18 files changed, 218 insertions(+), 370 deletions(-)
--
2.39.0
Powered by blists - more mailing lists