[TCP]: Ratelimit debugging warning.
Better safe than sorry. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
eb0d604114
commit
046d20b739
|
@ -436,11 +436,13 @@ int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len, unsigned int mss
|
||||||
u16 flags;
|
u16 flags;
|
||||||
|
|
||||||
if (unlikely(len >= skb->len)) {
|
if (unlikely(len >= skb->len)) {
|
||||||
printk(KERN_DEBUG "TCP: seg_size=%u, mss=%u, seq=%u, "
|
if (net_ratelimit()) {
|
||||||
"end_seq=%u, skb->len=%u.\n", len, mss_now,
|
printk(KERN_DEBUG "TCP: seg_size=%u, mss=%u, seq=%u, "
|
||||||
TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq,
|
"end_seq=%u, skb->len=%u.\n", len, mss_now,
|
||||||
skb->len);
|
TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq,
|
||||||
WARN_ON(1);
|
skb->len);
|
||||||
|
WARN_ON(1);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue