Google
  Web www.spinics.net

[PATCH] sch_sfb.c: fix typo in compute_qlen.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Kernel List]     [Site Home]     [Ethernet Bridging]     [Git]     [IETF Annouce]     [Linux Assembly]     [VLAN]     [Networking]     [Security]     [Bugtraq]     [Rubini]     [Photo]     [Singles Social Networking]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Virtualization]     [Linux Security]     [Linux IDE]     [Linux RAID]     [Linux SCSI]     [Linux Wireless]     [DDR & Rambus]     [Free Dating]     [Linux Resources]     [Wireless Reading Device]

Add to Google Powered by Linux