summaryrefslogtreecommitdiffstats
path: root/samples/tracepoints
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2008-11-25 00:52:46 +0100
committerDavid S. Miller <davem@davemloft.net>2008-11-25 00:52:46 +0100
commit2e77d89b2fa8e3f8325b8ce7893ec3645f41aff5 (patch)
treeae40aa75449f705bd166630f9bcb5f41373d8248 /samples/tracepoints
parentnet: gen_estimator: Fix gen_kill_estimator() lookups (diff)
downloadlinux-2e77d89b2fa8e3f8325b8ce7893ec3645f41aff5.tar.xz
linux-2e77d89b2fa8e3f8325b8ce7893ec3645f41aff5.zip
net: avoid a pair of dst_hold()/dst_release() in ip_append_data()
We can reduce pressure on dst entry refcount that slowdown UDP transmit path on SMP machines. This pressure is visible on RTP servers when delivering content to mediagateways, especially big ones, handling thousand of streams. Several cpus send UDP frames to the same destination, hence use the same dst entry. This patch makes ip_append_data() eventually steal the refcount its callers had to take on the dst entry. This doesnt avoid all refcounting, but still gives speedups on SMP, on UDP/RAW transmit path Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/tracepoints')
0 files changed, 0 insertions, 0 deletions