[PATCH wireguard-tools v3 0/3] ipc: linux: kernel-side netdevice filtering

Asbjørn Sloth Tønnesen ast at fiberby.net
Fri Jan 30 19:10:52 UTC 2026


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

The first patch request kernel-side filtering.

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

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

I assume that a dependency on Linux v4.6+ is acceptable for wg-tools
now, as wireguard-linux-compat haven't been updated for 3 years.

---
Changes:
v3:
- 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: skip statistics on netdevice listing
  ipc: linux: remove user-space netdevice filtering

 src/ipc-linux.h | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)

-- 
2.51.0



More information about the WireGuard mailing list