aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-03 10:35:09 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-03 10:35:09 -0400
commit484cad34dd667235565c14a40e2f5a8143184aaa (patch)
tree70bb901671958960a64d7f383c902178b4b49558 /include/net/tcp.h
parent95a38f34635bdf06089de763b4becbc957694977 (diff)
parent67796bf7dc54c035fd97f2681a72e5d2bf2a234a (diff)
Merge branch 'dma-debug' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu into x86/urgent
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h15
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
619static 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
628static 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 */
635enum tcp_ca_event { 620enum 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 */