]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'udp_hash'
authorDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 06:30:25 +0000 (23:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 06:30:25 +0000 (23:30 -0700)
commit74a46893aefecc8e0fc864b738dd4687574ebbbc
treecab09b28d188606139b1b50b661f42da157c52ba
parent9e774eed7e86f23eb1707a7ada5e6565a95b380d
parent71efe09a718185205f89001ff92e868d9e1b16eb
Merge branch 'udp_hash'

David Held says:

====================
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 14ecc8527457 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
====================

Signed-off-by: David S. Miller <davem@davemloft.net>