diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-06-02 16:18:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-06-05 10:24:57 +0100 |
commit | b072aa7899189127e26b2daf8c38933c994f97d3 (patch) | |
tree | d8d3c13b52c92efe2020385affa0fd444e28429f /net/ipv4/tcp_output.c | |
parent | 82dc29b9737edf2d13561ebcf6212c0b88c41129 (diff) | |
download | linux-b072aa7899189127e26b2daf8c38933c994f97d3.tar.gz linux-b072aa7899189127e26b2daf8c38933c994f97d3.tar.bz2 linux-b072aa7899189127e26b2daf8c38933c994f97d3.zip |
mlxsw: spectrum_router: Constify struct devlink_dpipe_table_ops
'struct devlink_dpipe_table_ops' are not modified in this driver.
Constifying these structures moves some data to a read-only section, so
increase overall security.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
15557 712 0 16269 3f8d drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.o
After:
=====
text data bss dec hex filename
15789 488 0 16277 3f95 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.o
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>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions