[<prev] [next>] [day] [month] [year] [list]
Message-ID: <7ik5j4cewz.fsf@lanthane.pps.jussieu.fr>
Date: Fri, 11 Apr 2008 22:30:52 +0200
From: Juliusz Chroboczek <Juliusz.Chroboczek@....jussieu.fr>
To: netdev@...r.kernel.org
Subject: [PATCH] sch_sfb.c: fix typo in compute_qlen.
Of course, this depends on the SFB patch being applied.
Juliusz
diff --git a/net/sched/sch_sfb.c b/net/sched/sch_sfb.c
index b17d35f..f3e1e07 100644
--- a/net/sched/sch_sfb.c
+++ b/net/sched/sch_sfb.c
@@ -202,7 +202,7 @@ static void compute_qlen(u16 *qlen_r, u16 *prob_r, struct sfb_sched_data *q)
for (j = 0; j < NUMBUCKETS; j++) {
if (qlen < q->buckets[filter][i][j].qlen)
qlen = q->buckets[filter][i][j].qlen;
- if (qlen < q->buckets[filter][i][j].pm)
+ if (prob < q->buckets[filter][i][j].pm)
prob = q->buckets[filter][i][j].pm;
}
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists