]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: convert elligible sysctls to u8
authorEric Dumazet <edumazet@google.com>
Thu, 25 Mar 2021 18:08:17 +0000 (11:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 00:39:33 +0000 (17:39 -0700)
commit216695e9959c85ae11f65583e29015a9c60766b0
tree59d80b979dda8c40215678a1f394bad170686178
parent650b2d75b57fcaf59be5cab260cb762cee77aafd
tcp: convert elligible sysctls to u8

Many tcp sysctls are either bools or small ints that can fit into u8.

Reducing space taken by sysctls can save few cache line misses
when sending/receiving data while cpu caches are empty,
for example after cpu idle period.

This is hard to measure with typical network performance tests,
but after this patch, struct netns_ipv4 has shrunk
by three cache lines.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv4.h
net/ipv4/sysctl_net_ipv4.c