summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-06-11 09:15:16 -0700
committerDavid S. Miller <davem@davemloft.net>2015-06-11 16:33:11 -0700
commit51466a7545b73b7ad7bcfb33410d2823ccfaa501 (patch)
treef12fe132349a599b567efc45a092bbf2f591ea3d /include/net/tcp.h
parenta7eea416cb08a514f94c0ca5ff30c18783fab054 (diff)
downloadop-kernel-dev-51466a7545b73b7ad7bcfb33410d2823ccfaa501.zip
op-kernel-dev-51466a7545b73b7ad7bcfb33410d2823ccfaa501.tar.gz
tcp: fill shinfo->gso_type at last moment
Our goal is to touch skb_shinfo(skb) only when absolutely needed, to avoid two cache line misses in TCP output path for last skb that is considered but not sent because of various conditions (cwnd, tso defer, receiver window, TSQ...) A packet is GSO only when skb_shinfo(skb)->gso_size is not zero. We can set skb_shinfo(skb)->gso_type to sk->sk_gso_type even for non GSO packets. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud