WireGuard Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH wireguard-tools v4 0/3] ipc: linux: kernel-side netdevice filtering
@ 2026-03-12 21:43 Asbjørn Sloth Tønnesen
  2026-03-12 21:43 ` [PATCH wireguard-tools v4 1/3] ipc: linux: filter netdevices kernel-side Asbjørn Sloth Tønnesen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Asbjørn Sloth Tønnesen @ 2026-03-12 21:43 UTC (permalink / raw)
  To: Jason A . Donenfeld; +Cc: Asbjørn Sloth Tønnesen, wireguard

Move device filtering to the kernel, thereby reducing netlink traffic.

The first patch request kernel-side filtering.

The second patch removes the old filtering code, as an
additional step, which breaks on earlier than Linux v4.6.

The third patch requests that the kernel doesn't include statistics
in netdevice dumps.

This bumps the minimum supported Linux kernel version to v4.6.

---
Changes:
v4:
- Remove #ifdef RTEXT_FILTER_SKIP_STATS.
- Sync changes to the embeddable C library.
- Now that Linux v4.6+ is fine, swap the order of patch 2 and 3.
- Dusted of the commit messages a bit.

v3: https://lists.zx2c4.com/pipermail/wireguard/2026-January/009471.html
- Added patch to set RTEXT_FILTER_SKIP_STATS
- Re-worked commit messages a bit.

v2: https://lists.zx2c4.com/pipermail/wireguard/2025-October/009080.html
- Added info about kernel-support to commit message
- Added another patch, for removing client-side filtering

v1: https://lists.zx2c4.com/pipermail/wireguard/2025-September/009004.html


Asbjørn Sloth Tønnesen (3):
  ipc: linux: filter netdevices kernel-side
  ipc: linux: remove user-space netdevice filtering
  ipc: linux: skip statistics on netdevice listing

 contrib/embeddable-wg-library/wireguard.c | 23 +++++++++--------------
 src/ipc-linux.h                           | 23 +++++++++--------------
 2 files changed, 18 insertions(+), 28 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-10 16:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12 21:43 [PATCH wireguard-tools v4 0/3] ipc: linux: kernel-side netdevice filtering Asbjørn Sloth Tønnesen
2026-03-12 21:43 ` [PATCH wireguard-tools v4 1/3] ipc: linux: filter netdevices kernel-side Asbjørn Sloth Tønnesen
2026-03-12 21:44 ` [PATCH wireguard-tools v4 2/3] ipc: linux: remove user-space netdevice filtering Asbjørn Sloth Tønnesen
2026-03-12 21:44 ` [PATCH wireguard-tools v4 3/3] ipc: linux: skip statistics on netdevice listing Asbjørn Sloth Tønnesen
2026-11-10 16:32 ` [PATCH wireguard-tools v4 0/3] ipc: linux: kernel-side netdevice filtering Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox