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>
This commit is contained in:

committed by
David S. Miller

parent
3e7fb80b60
commit
6f094b9ec6
@@ -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 {
|
||||
|
Reference in New Issue
Block a user