[TCP]: Congestion control API update.
Do some simple changes to make congestion control API faster/cleaner. * use ktime_t rather than timeval * merge rtt sampling into existing ack callback this means one indirect call versus two per ack. * use flags bits to store options/settings Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
65d1b4a7e7
commit
164891aadf
15 changed files with 65 additions and 55 deletions
|
@ -1569,6 +1569,11 @@ static inline void __net_timestamp(struct sk_buff *skb)
|
|||
skb->tstamp = ktime_get_real();
|
||||
}
|
||||
|
||||
static inline ktime_t net_timedelta(ktime_t t)
|
||||
{
|
||||
return ktime_sub(ktime_get_real(), t);
|
||||
}
|
||||
|
||||
|
||||
extern __sum16 __skb_checksum_complete_head(struct sk_buff *skb, int len);
|
||||
extern __sum16 __skb_checksum_complete(struct sk_buff *skb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue