Skip to content

ipc: linux: kernel-side netdevice filtering

Asbjørn Sloth Tønnesen wireguard 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyIn review
  2. v33 patches 1 replySuperseded

Changes in v4 from the cover letter

- 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.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ipc: linux: filter netdevices kernel-sidecontrib/embeddable-wg-library/wireguard.c src/ipc-linux.h+12 -00 replies
2/3ipc: linux: remove user-space netdevice filteringcontrib/embeddable-wg-library/wireguard.c src/ipc-linux.h+4 -280 replies
3/3ipc: linux: skip statistics on netdevice listingcontrib/embeddable-wg-library/wireguard.c src/ipc-linux.h+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

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

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(-)
Signature · 1 line
2.53.0