aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2007-03-20 14:00:28 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:26:54 -0400
commit6626e3628fe42837f733d103e194c6b4473d8669 (patch)
treea37b19400561134b2fc28498b39e453db61c35ca /net/dccp
parentac12b0c49571fe4c3a2f4957ed494da316d558be (diff)
[DCCP]: More debug information for dccp_wait_for_ccid
This adds more detail in the wait_for_ccid packet scheduling loop. In particular, it informs about (i) when delay is used and (ii) why a packet is discarded. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dccp/output.c b/net/dccp/output.c
index aa21cc4de37f..c8d843e983fc 100644
--- a/net/dccp/output.c
+++ b/net/dccp/output.c
@@ -194,6 +194,7 @@ static int dccp_wait_for_ccid(struct sock *sk, struct sk_buff *skb)
194 rc = ccid_hc_tx_send_packet(dp->dccps_hc_tx_ccid, sk, skb); 194 rc = ccid_hc_tx_send_packet(dp->dccps_hc_tx_ccid, sk, skb);
195 if (rc <= 0) 195 if (rc <= 0)
196 break; 196 break;
197 dccp_pr_debug("delayed send by %d msec\n", rc);
197 delay = msecs_to_jiffies(rc); 198 delay = msecs_to_jiffies(rc);
198 sk->sk_write_pending++; 199 sk->sk_write_pending++;
199 release_sock(sk); 200 release_sock(sk);
@@ -255,7 +256,7 @@ void dccp_write_xmit(struct sock *sk, int block)
255 DCCP_BUG("err=%d after ccid_hc_tx_packet_sent", 256 DCCP_BUG("err=%d after ccid_hc_tx_packet_sent",
256 err); 257 err);
257 } else { 258 } else {
258 dccp_pr_debug("packet discarded\n"); 259 dccp_pr_debug("packet discarded due to err=%d\n", err);
259 kfree_skb(skb); 260 kfree_skb(skb);
260 } 261 }
261 } 262 }