aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2011-03-01 02:36:48 +0000
committerDavid S. Miller <davem@davemloft.net>2011-03-01 12:35:42 -0800
commit903ab86d195cca295379699299c5fc10beba31c7 (patch)
tree2b73fe727bf843bf0a0629dce044da61dc9cb166 /net/ipv4/af_inet.c
parentudp: Switch to ip_finish_skb (diff)
downloadlinux-dev-903ab86d195cca295379699299c5fc10beba31c7.tar.xz
linux-dev-903ab86d195cca295379699299c5fc10beba31c7.zip
udp: Add lockless transmit path
The UDP transmit path has been running under the socket lock for a long time because of the corking feature. This means that transmitting to the same socket in multiple threads does not scale at all. However, as most users don't actually use corking, the locking can be removed in the common case. This patch creates a lockless fast path where corking is not used. Please note that this does create a slight inaccuracy in the enforcement of socket send buffer limits. In particular, we may exceed the socket limit by up to (number of CPUs) * (packet size) because of the way the limit is computed. As the primary purpose of socket buffers is to indicate congestion, this should not be a great problem for now. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/af_inet.c')
0 files changed, 0 insertions, 0 deletions