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)
commitf69ad292cfd13aa7ee00847320c6bb9ba2154e87
tree7158b39eda3c315797407b0d558f7d301196499e
parent5bbb432c896d23ce8f41f38e88dbd38982df99f9
tcp: fill shinfo->gso_size at last moment

In commit cd7d8498c9a5 ("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