Date: Mon, 05 Nov 2001 21:51:28 +0300 From: fbsdlist-ipfw@f151.n5025.z2.fidonet.org (fbsdlist-ipfw) To: freebsd-ipfw@freebsd.org Subject: ipfw with RED Message-ID: <MSGID_2=3A5025=2F151_3be75e11@fidonet.org>
next in thread | raw e-mail | index | archive | help
Hello! I have FreeBSD 4.4-STABLE cvsuped at Nov 4, two ethernet cards (xl and ed) The following my ipfw configuration causes kernel panic in sys/netinet/ip_dummynet.c:red_drops() after ~2 sec (depending of network load) ipfw pipe 1 config bw 3000bit/s queue 2kbyte ipfw queue 2 config pipe 1 queue 100 red 0.008/30/80/0.1 ipfw add 1 queue 2 ip from any to any out xmit ed0 Also any ipfw configuration with RED causes kernel panic. I found the following workaround: ===== -+- ip_dummynet.c.orig Sun Nov 4 18:44:49 2001 +++ ip_dummynet.c Sun Nov 4 21:44:51 2001 @@ -955,7 +955,7 @@ * XXX check wraps... */ if (q->avg) { - u_int t = (curr_time - q->q_time) / fs->lookup_step; + u_int t = (curr_time - q->q_time) / ( fs->lookup_step ? + fs->lookup_step : (fs->lookup_step=1) ); q->avg = (t < fs->lookup_depth) ? SCALE_MUL(q->avg, fs->w_q_lookup[t]) : 0; ===== This bug(?) is not related last dummynet changes, it also was in sources cvsup'ed at Oct 4 Does anybody use ipfw with RED or GRED without such troubles? Gennady Proskurin email: gpr@nvnpp.vrn.ru FIDO: 2:5025/151 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MSGID_2=3A5025=2F151_3be75e11>