Skip to content

udp: Fix multicast performance issues.

David Held netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 1 replySuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- avoid flushing under lock unnecessarily at ARRAY_SIZE boundary

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2udp: Simplify __udp*_lib_mcast_deliver.net/ipv4/udp.c net/ipv6/udp.c+49 -871 reply
2/2udp: Use hash2 for long hash1 chains in __udp*_lib_mcast_deliver.include/net/sock.h net/ipv4/udp.c net/ipv6/udp.c+55 -201 reply

Reviews trailers per patch

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

PatchEric Dumazet
1/2A-b
2/2

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/2] udp: Fix multicast performance issues.

Fix performance issues with listening to many different multicast sockets on different addresses with the same port. Instead of always using hash1, fall back to hash2 lookup when hash1 lookup is long. Patch 1 is a general cleanup and simplification which also makes the main implementation in Patch 2 simpler.

Eric's recent change 63c6f81cdde5 avoided this being an issue in early demux. This makes it work for regular delivery as well.

v1->v2
- updated hash collision detection

v2->v3
- avoid flushing under lock unnecessarily at ARRAY_SIZE boundary