diff options
author | Lawrence Brakmo <brakmo@fb.com> | 2016-06-09 04:16:44 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-11 06:07:49 (GMT) |
commit | 6f094b9ec680209c5b7314feee983b2f4c910b1b (patch) | |
tree | e695d80ba28c1788606007c9734da7ed0335ffd7 /include/net/tcp.h | |
parent | 3e7fb80b604b5bc7116fe374f604eb7c85f00b43 (diff) | |
download | linux-6f094b9ec680209c5b7314feee983b2f4c910b1b.tar.xz |
tcp: add in_flight to tcp_skb_cb
Add in_flight (bytes in flight when packet was sent) field
to tx component of tcp_skb_cb and make it available to
congestion modules' pkts_acked() function through the
ack_sample function argument.
Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 0bcc70f..a79894b 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -767,6 +767,7 @@ struct tcp_skb_cb { union { struct { /* There is space for up to 20 bytes */ + __u32 in_flight;/* Bytes in flight when packet sent */ } tx; /* only used for outgoing skbs */ union { struct inet_skb_parm h4; @@ -859,6 +860,7 @@ union tcp_cc_info; struct ack_sample { u32 pkts_acked; s32 rtt_us; + u32 in_flight; }; struct tcp_congestion_ops { |