]> www.infradead.org Git - users/jedix/linux-maple.git/commit
devlink: Constify the 'table_ops' parameter of devl_dpipe_table_register()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 2 Jun 2024 14:18:52 +0000 (16:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2024 09:24:57 +0000 (10:24 +0100)
commit82dc29b9737edf2d13561ebcf6212c0b88c41129
treed78af5874e5b141074df5bca02794b797b347f32
parent61578f67937881abf54c8bd258eb913312dbe4c1
devlink: Constify the 'table_ops' parameter of devl_dpipe_table_register()

"struct devlink_dpipe_table_ops" only contains some function pointers.

Update "struct devlink_dpipe_table" and the 'table_ops' parameter of
devl_dpipe_table_register() so that structures in drivers can be
constified.

Constifying these structures will move some data to a read-only section, so
increase overall security.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/devlink/dpipe.c