]> git.karo-electronics.de Git - linux-beck.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)
commit931731123a103cfb3f70ac4b7abfc71d94ba1f03
tree0af6636fde05f74a8aa5421bfe9828e2a209170d
parentef56e622c61e74dd6077615c9ea76c5132195880
[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