]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Don't set SKB owner in tcp_transmit_skb().
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 10 Nov 2006 03:58:25 +0000 (19:58 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:21:52 +0000 (21:21 -0800)
commit8b454b611f68f1671cc64405ad1b5305dca12f89
tree0af6636fde05f74a8aa5421bfe9828e2a209170d
parente669a3a8ec1c22244867e598e490433305db49cc
[TCP]: Don't set SKB owner in tcp_transmit_skb().

The data itself is already charged to the SKB, doing
the skb_set_owner_w() just generates a lot of noise and
extra atomics we don't really need.

Lmbench improvements on lat_tcp are minimal:

before:
TCP latency using localhost: 23.2701 microseconds
TCP latency using localhost: 23.1994 microseconds
TCP latency using localhost: 23.2257 microseconds

after:
TCP latency using localhost: 22.8380 microseconds
TCP latency using localhost: 22.9465 microseconds
TCP latency using localhost: 22.8462 microseconds

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet6_connection_sock.h
include/net/inet_connection_sock.h
include/net/ip.h
net/dccp/output.c
net/ipv4/ip_output.c
net/ipv4/tcp_output.c
net/ipv6/inet6_connection_sock.c
net/sctp/protocol.c