]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fill shinfo->gso_size at last moment
authorEric Dumazet <edumazet@google.com>
Thu, 11 Jun 2015 16:15:18 +0000 (09:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2015 23:33:11 +0000 (16:33 -0700)
commit94525c883985166c3ed8d467077b356da273246c
tree7158b39eda3c315797407b0d558f7d301196499e
parent6d419b56f33b6a7ad863534a062ca7e92a2891ff
tcp: fill shinfo->gso_size at last moment

In commit b57dc3891b02 ("tcp: change tcp_skb_pcount() location") we stored
gso_segs in a temporary cache hot location.

This patch does the same for gso_size.

This allows to save 2 cache line misses in tcp xmit path for
the last packet that is considered but not sent because of
various conditions (cwnd, tso defer, receiver window, TSQ...)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c