diff options
| author | Christophe JAILLET <[email protected]> | 2024-06-02 14:18:53 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-06-05 09:24:57 +0000 |
| commit | b072aa7899189127e26b2daf8c38933c994f97d3 (patch) | |
| tree | d8d3c13b52c92efe2020385affa0fd444e28429f /net/ipv4/tcp_output.c | |
| parent | devlink: Constify the 'table_ops' parameter of devl_dpipe_table_register() (diff) | |
| download | kernel-b072aa7899189127e26b2daf8c38933c994f97d3.tar.gz kernel-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 <[email protected]>
Reviewed-by: Wojciech Drewek <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
