aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/extract-handshakes
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>2026-03-12 21:44:01 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2026-11-10 17:31:20 +0100
commitba8556ce45c230906041a1a04450b7b638057917 (patch)
tree456b76fbdd60887ecbfa93b2c6e6e4da7049a9a4 /contrib/extract-handshakes
parentipc: linux: clean up interface struct (diff)
downloadwireguard-tools-master.tar.xz
wireguard-tools-master.zip
ipc: linux: skip statistics on netdevice listingHEADmaster
Gathering interface statistics can be a relatively expensive operation on certain systems as it requires iterating over all the cpus. This patch instructs the kernel to not include netdevice statistics, in the netdevice listing. Kernel-side support for this was added in Linux v4.4 in commit d5566fd72ec1 ("rtnetlink: RTEXT_FILTER_SKIP_STATS support to avoid dumping inet/inet6 stats"); this saves 368 bytes of statistics. In the Linux v6.19 commit 105bae321862 ("rtnetlink: honor RTEXT_FILTER_SKIP_STATS in IFLA_STATS"), it is expanded to skip more statistics, bringing the savings to 800 bytes per netdevice. Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'contrib/extract-handshakes')
0 files changed, 0 insertions, 0 deletions