[PATCH 0/2 net-next] devlink: Constify struct devlink_dpipe_table_ops

Christophe JAILLET posted 2 patches 1 year, 6 months ago
drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c | 8 ++++----
include/net/devlink.h                                | 4 ++--
net/devlink/dpipe.c                                  | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
[PATCH 0/2 net-next] devlink: Constify struct devlink_dpipe_table_ops
Posted by Christophe JAILLET 1 year, 6 months ago
Patch 1 updates devl_dpipe_table_register() and struct
devlink_dpipe_table to accept "const struct devlink_dpipe_table_ops".

Then patch 2 updates the only user of this function.

This is compile tested only.

Christophe JAILLET (2):
  devlink: Constify the 'table_ops' parameter of
    devl_dpipe_table_register()
  mlxsw: spectrum_router: Constify struct devlink_dpipe_table_ops

 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c | 8 ++++----
 include/net/devlink.h                                | 4 ++--
 net/devlink/dpipe.c                                  | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.45.1
Re: [PATCH 0/2 net-next] devlink: Constify struct devlink_dpipe_table_ops
Posted by Jiri Pirko 1 year, 6 months ago
Sun, Jun 02, 2024 at 04:18:51PM CEST, christophe.jaillet@wanadoo.fr wrote:
>Patch 1 updates devl_dpipe_table_register() and struct
>devlink_dpipe_table to accept "const struct devlink_dpipe_table_ops".
>
>Then patch 2 updates the only user of this function.
>
>This is compile tested only.
>
>Christophe JAILLET (2):
>  devlink: Constify the 'table_ops' parameter of
>    devl_dpipe_table_register()
>  mlxsw: spectrum_router: Constify struct devlink_dpipe_table_ops

set-
Reviewed-by: Jiri Pirko <jiri@nvidia.com>