diff options
author | Tom Herbert <therbert@google.com> | 2013-01-22 13:50:32 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-23 22:44:01 +0400 |
commit | ba418fa357a7b3c9d477f4706c6c7c96ddbd1360 (patch) | |
tree | 127ab1b2e773a2c50d217565b6413dd8be9e49a5 /net/ipv6/inet6_hashtables.c | |
parent | da5e36308d9f7151845018369148201a5d28b46d (diff) | |
download | linux-ba418fa357a7b3c9d477f4706c6c7c96ddbd1360.tar.xz |
soreuseport: UDP/IPv4 implementation
Allow multiple UDP sockets to bind to the same port.
Motivation soreuseport would be something like a DNS server. An
alternative would be to recv on the same socket from multiple threads.
As in the case of TCP, the load across these threads tends to be
disproportionate and we also see a lot of contection on the socketlock.
Note that SO_REUSEADDR already allows multiple UDP sockets to bind to
the same port, however there is no provision to prevent hijacking and
nothing to distribute packets across all the sockets sharing the same
bound port. This patch does not change the semantics of SO_REUSEADDR,
but provides usable functionality of it for unicast.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/inet6_hashtables.c')
0 files changed, 0 insertions, 0 deletions