diff options
author | Chris Zankel <chris@zankel.net> | 2009-04-03 05:29:05 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2009-04-03 05:29:05 -0400 |
commit | 65127d28e312bb6b38ce84a7bb71d762ef63ad4c (patch) | |
tree | d5fdf52a2d0731f7fab0ce0ed394faac50b04fbc /include/net | |
parent | b8bb76713ec50df2f11efee386e16f93d51e1076 (diff) | |
parent | 8fe74cf053de7ad2124a894996f84fa890a81093 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into merge
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tcp.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index e54c76d75495..1b94b9bfe2dc 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -616,21 +616,6 @@ static inline int tcp_skb_mss(const struct sk_buff *skb) | |||
616 | return skb_shinfo(skb)->gso_size; | 616 | return skb_shinfo(skb)->gso_size; |
617 | } | 617 | } |
618 | 618 | ||
619 | static inline void tcp_dec_pcount_approx_int(__u32 *count, const int decr) | ||
620 | { | ||
621 | if (*count) { | ||
622 | *count -= decr; | ||
623 | if ((int)*count < 0) | ||
624 | *count = 0; | ||
625 | } | ||
626 | } | ||
627 | |||
628 | static inline void tcp_dec_pcount_approx(__u32 *count, | ||
629 | const struct sk_buff *skb) | ||
630 | { | ||
631 | tcp_dec_pcount_approx_int(count, tcp_skb_pcount(skb)); | ||
632 | } | ||
633 | |||
634 | /* Events passed to congestion control interface */ | 619 | /* Events passed to congestion control interface */ |
635 | enum tcp_ca_event { | 620 | enum tcp_ca_event { |
636 | CA_EVENT_TX_START, /* first transmit when no packets in flight */ | 621 | CA_EVENT_TX_START, /* first transmit when no packets in flight */ |