aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2007-07-27 09:36:17 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:47:59 -0400
commitb9c4595bc4947faa236a849324fe3492e388d949 (patch)
tree392994d87f7e64e695bb3dbb1b5472286b1deef2 /include/net/tcp.h
parent1b6d427bb7eb69e6dc4f194a5b0f4a382a16ff82 (diff)
[TCP]: Don't panic if S+L skb is detected
BUG_ON is an overkill. In fact, I was mislead by BUG_TRAP severity (equals to WARN_ON) which is much lower than BUG_ON's (that panics). Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 064c92fe00d2..b92bdc7c92a9 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -758,8 +758,8 @@ static inline __u32 tcp_current_ssthresh(const struct sock *sk)
758 (tp->snd_cwnd >> 2))); 758 (tp->snd_cwnd >> 2)));
759} 759}
760 760
761/* Use define here intentionally to get BUG_ON location shown at the caller */ 761/* Use define here intentionally to get WARN_ON location shown at the caller */
762#define tcp_verify_left_out(tp) BUG_ON(tcp_left_out(tp) > tp->packets_out) 762#define tcp_verify_left_out(tp) WARN_ON(tcp_left_out(tp) > tp->packets_out)
763 763
764extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh); 764extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh);
765extern __u32 tcp_init_cwnd(struct tcp_sock *tp, struct dst_entry *dst); 765extern __u32 tcp_init_cwnd(struct tcp_sock *tp, struct dst_entry *dst);