mbox series

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

Message ID cover.1717337525.git.christophe.jaillet@wanadoo.fr (mailing list archive)
Headers show
Series devlink: Constify struct devlink_dpipe_table_ops | expand

Message

Christophe JAILLET June 2, 2024, 2:18 p.m. UTC
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(-)

Comments

Jiri Pirko June 3, 2024, 12:47 p.m. UTC | #1
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>
patchwork-bot+netdevbpf@kernel.org June 5, 2024, 9:30 a.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Sun,  2 Jun 2024 16:18:51 +0200 you 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.
> 
> [...]

Here is the summary with links:
  - [1/2,net-next] devlink: Constify the 'table_ops' parameter of devl_dpipe_table_register()
    https://git.kernel.org/netdev/net-next/c/82dc29b9737e
  - [2/2,net-next] mlxsw: spectrum_router: Constify struct devlink_dpipe_table_ops
    https://git.kernel.org/netdev/net-next/c/b072aa789918

You are awesome, thank you!