summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLawrence Brakmo <brakmo@fb.com>2016-06-09 07:16:44 +0300
committerDavid S. Miller <davem@davemloft.net>2016-06-11 09:07:49 +0300
commit6f094b9ec680209c5b7314feee983b2f4c910b1b (patch)
treee695d80ba28c1788606007c9734da7ed0335ffd7 /include
parent3e7fb80b604b5bc7116fe374f604eb7c85f00b43 (diff)
downloadlinux-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')
-rw-r--r--include/net/tcp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 0bcc70f4e1fb..a79894b66726 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 {