aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ccids
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-08-27 02:06:35 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 19:11:38 -0400
commitd6809c12b3334a929c39bf08ea63bd819e0500f7 (patch)
tree47fc3aa37c35ae6a83bc41b1ecf4a78c1189a00b /net/dccp/ccids
parent75b3f207b433dcb807fcf0f47de1c8398571ba5f (diff)
[DCCP]: Introduce dccp_wait_for_ccid and use it in dccp_write_xmit
This is not quite what I think we should have long term but improves performance for now, so lets use it till we get CCID3 working well, then we can think about using sk_write_queue, perhaps using some ideas from Juwen Lai's old stack for 2.4.20. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ccids')
-rw-r--r--net/dccp/ccids/ccid3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c
index cf93b019ecbe..9866dc175258 100644
--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -985,7 +985,7 @@ static int ccid3_hc_tx_send_packet(struct sock *sk,
985 ccid3_pr_debug("send_packet delay=%ld\n", delay); 985 ccid3_pr_debug("send_packet delay=%ld\n", delay);
986 delay /= -1000; 986 delay /= -1000;
987 /* divide by -1000 is to convert to ms and get sign right */ 987 /* divide by -1000 is to convert to ms and get sign right */
988 rc = delay > 0 ? -EAGAIN : 0; 988 rc = delay > 0 ? delay : 0;
989 break; 989 break;
990 default: 990 default:
991 printk(KERN_CRIT "%s: %s, sk=%p, Illegal state (%d)!\n", 991 printk(KERN_CRIT "%s: %s, sk=%p, Illegal state (%d)!\n",