[PATCH] Fix ISDN v.110.

From: David Woodhouse
Date: Fri Feb 20 2004 - 13:36:46 EST


Now that we coalesce ACKs for outgoing packets, the v.110 code needs to
look at the size it's given rather than assuming it'll get precisely one
callback for each packet sent...

===== drivers/isdn/i4l/isdn_v110.c 1.15 vs edited =====
--- 1.15/drivers/isdn/i4l/isdn_v110.c Thu Feb 19 03:42:12 2004
+++ edited/drivers/isdn/i4l/isdn_v110.c Thu Feb 19 20:39:46 2004
@@ -535,13 +535,15 @@
if (!(v = dev->v110[idx]))
return 0;
atomic_inc(&dev->v110use[idx]);
- if (v->skbidle > 0) {
- v->skbidle--;
- ret = 1;
- } else {
- if (v->skbuser > 0)
- v->skbuser--;
- ret = 0;
+ for (i=0; i * v->framelen < c->parm.length; i++) {
+ if (v->skbidle > 0) {
+ v->skbidle--;
+ ret = 1;
+ } else {
+ if (v->skbuser > 0)
+ v->skbuser--;
+ ret = 0;
+ }
}
for (i = v->skbuser + v->skbidle; i < 2; i++) {
struct sk_buff *skb;


--
dwmw2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/