diff options
author | Eric Dumazet | 2024-02-27 19:27:21 +0000 |
---|---|---|
committer | Jakub Kicinski | 2024-02-28 20:21:24 -0800 |
commit | 99123622050f10ca9148a0fffba2de0afd6cdfff (patch) | |
tree | eeeb3af790af199b74887551e2063642f9b7cf63 /net/netlabel | |
parent | 82a48affb36f1fee36fe415051a8947d42861108 (diff) |
tcp: remove some holes in struct tcp_sock
By moving some fields around, this patch shrinks
holes size from 56 to 32, saving 24 bytes on 64bit arches.
After the patch pahole gives the following for 'struct tcp_sock':
/* size: 2304, cachelines: 36, members: 162 */
/* sum members: 2234, holes: 6, sum holes: 32 */
/* sum bitfield members: 34 bits, bit holes: 5, sum bit holes: 14 bits */
/* padding: 32 */
/* paddings: 3, sum paddings: 10 */
/* forced alignments: 1, forced holes: 1, sum forced holes: 12 */
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240227192721.3558982-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/netlabel')
0 files changed, 0 insertions, 0 deletions