Skip to content

wireguard fixes for 5.12-rc1

Jason A. Donenfeld netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7wireguard: avoid double unlikely() notation when using IS_ERR()drivers/net/wireguard/device.c drivers/net/wireguard/socket.c+3 -30 replies
2/7wireguard: socket: remove bogus __be32 annotationdrivers/net/wireguard/socket.c+2 -20 replies
3/7wireguard: selftests: test multiple parallel streamstools/testing/selftests/wireguard/netns.sh+14 -10 replies
4/7wireguard: peer: put frequently used members above cache linesdrivers/net/wireguard/peer.h+2 -20 replies
5/7wireguard: device: do not generate ICMP for non-IP packetsdrivers/net/wireguard/device.c+4 -30 replies
6/7wireguard: queueing: get rid of per-peer ring buffersdrivers/net/wireguard/device.c drivers/net/wireguard/device.h drivers/net/wireguard/peer.c +5 more+144 -930 replies
7/7wireguard: kconfig: use arm chacha even with no neondrivers/net/Kconfig+1 -10 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchDmitry VyukovToke Høiland-Jørgensen
1/7
2/7
3/7
4/7
5/7
6/7R-b R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/7] wireguard fixes for 5.12-rc1

Hi Dave,

This series has a collection of fixes that have piled up for a little while now, that I unfortunately didn't get a chance to send out earlier.

1) Removes unlikely() from IS_ERR(), since it's already implied.

2) Remove a bogus sparse annotation that hasn't been needed for years.

3) Addition test in the test suite for stressing parallel ndo_start_xmit.

4) Slight struct reordering in preparation for subsequent fix.

5) If skb->protocol is bogus, we no longer attempt to send icmp messages.

6) Massive memory usage fix, hit by larger deployments.

7) Fix typo in kconfig dependency logic.

(1) and (2) are tiny cleanups, and (3) is just a test, so if you're trying to reduce churn, you could not backport these. But (4), (5), (6), and (7) fix problems and should be applied to stable. IMO, it's probably easiest to just apply them all to stable.

Thanks,
Jason

Antonio Quartulli (1):
wireguard: avoid double unlikely() notation when using IS_ERR()

Jann Horn (1):
wireguard: socket: remove bogus __be32 annotation

Jason A. Donenfeld (5):
wireguard: selftests: test multiple parallel streams
wireguard: peer: put frequently used members above cache lines
wireguard: device: do not generate ICMP for non-IP packets
wireguard: queueing: get rid of per-peer ring buffers
wireguard: kconfig: use arm chacha even with no neon

 drivers/net/Kconfig                        |  2 +-
 drivers/net/wireguard/device.c             | 21 +++---
 drivers/net/wireguard/device.h             | 15 ++--
 drivers/net/wireguard/peer.c               | 28 +++----
 drivers/net/wireguard/peer.h               |  8 +-
 drivers/net/wireguard/queueing.c           | 86 +++++++++++++++++-----
 drivers/net/wireguard/queueing.h           | 45 ++++++++---
 drivers/net/wireguard/receive.c            | 16 ++--
 drivers/net/wireguard/send.c               | 31 +++-----
 drivers/net/wireguard/socket.c             |  8 +-
 tools/testing/selftests/wireguard/netns.sh | 15 +++-
 11 files changed, 170 insertions(+), 105 deletions(-)
Signature · 1 line
2.30.1