diff options
| author | 2026-03-12 21:44:01 +0000 | |
|---|---|---|
| committer | 2026-11-10 17:31:20 +0100 | |
| commit | ba8556ce45c230906041a1a04450b7b638057917 (patch) | |
| tree | 456b76fbdd60887ecbfa93b2c6e6e4da7049a9a4 /contrib/extract-handshakes | |
| parent | ipc: linux: clean up interface struct (diff) | |
| download | wireguard-tools-master.tar.xz wireguard-tools-master.zip | |
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
