Skip to contentSkip to conversation

Fix ISDN v.110.

PATCH New David Woodhouse 1 participant 1 message Feb 20, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix ISDN v.110.

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 =====

drivers/isdn/i4l/isdn_v110.c +9 -7
@@ -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;
Signature · 1 line
dwmw2