patch-2.3.15 linux/net/sched/sch_sfq.c
Next file: linux/net/sched/sch_tbf.c
Previous file: linux/net/sched/sch_red.c
Back to the patch index
Back to the overall index
-  Lines: 28
-  Date:
Mon Aug 23 10:01:02 1999
-  Orig file: 
v2.3.14/linux/net/sched/sch_sfq.c
-  Orig date: 
Wed Jun  9 14:45:37 1999
diff -u --recursive --new-file v2.3.14/linux/net/sched/sch_sfq.c linux/net/sched/sch_sfq.c
@@ -278,11 +278,11 @@
 	if (++sch->q.qlen < SFQ_DEPTH-1) {
 		sch->stats.bytes += skb->len;
 		sch->stats.packets++;
-		return 1;
+		return 0;
 	}
 
 	sfq_drop(sch);
-	return 0;
+	return NET_XMIT_CN;
 }
 
 static int
@@ -311,11 +311,11 @@
 		}
 	}
 	if (++sch->q.qlen < SFQ_DEPTH-1)
-		return 1;
+		return 0;
 
 	sch->stats.drops++;
 	sfq_drop(sch);
-	return 0;
+	return NET_XMIT_CN;
 }
 
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)