aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 39d0df6afe47..7042c32085f5 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -758,10 +758,9 @@ static inline __u32 tcp_current_ssthresh(const struct sock *sk)
758 (tp->snd_cwnd >> 2))); 758 (tp->snd_cwnd >> 2)));
759} 759}
760 760
761static inline void tcp_sync_left_out(struct tcp_sock *tp) 761/* Use define here intentionally to get BUG_ON location shown at the caller */
762{ 762#define tcp_verify_left_out(tp) \
763 BUG_ON(tp->rx_opt.sack_ok && (tcp_left_out(tp) > tp->packets_out)); 763 BUG_ON(tp->rx_opt.sack_ok && (tcp_left_out(tp) > tp->packets_out))
764}
765 764
766extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh); 765extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh);
767extern __u32 tcp_init_cwnd(struct tcp_sock *tp, struct dst_entry *dst); 766extern __u32 tcp_init_cwnd(struct tcp_sock *tp, struct dst_entry *dst);