]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: tcp_transmit_skb() optimizations
authorEric Dumazet <edumazet@google.com>
Thu, 10 Oct 2013 15:43:00 +0000 (08:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Oct 2013 21:48:18 +0000 (17:48 -0400)
commit5f8512d80467695beb860d87418f208f830db04f
tree1ced2e6547f027d1417cb408142ce10c4f956754
parent0ba3e6cd8e7060cd1f97165cf135efc2b0fafdc3
tcp: tcp_transmit_skb() optimizations

1) We need to take a timestamp only for skb that should be cloned.

Other skbs are not in write queue and no rtt estimation is done on them.

2) the unlikely() hint is wrong for receivers (they send pure ACK)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: MF Nowlan <fitz@cs.yale.edu>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-By: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c