Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 1999 16:39:20 -0500 (EST)
From:      dmaddox@conterra.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/10440: Discard device does not set ifq_maxlen
Message-ID:  <199903062139.QAA03767@dmaddox.conterra.com>

next in thread | raw e-mail | index | archive | help

>Number:         10440
>Category:       kern
>Synopsis:       Discard device does not set ifq_maxlen
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar  6 13:40:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Donald J. Maddox
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

FreeBSD dmaddox.conterra.com 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Mon Mar  1 23:48:36 EST 1999     root@dmaddox.conterra.com:/usr/src/sys/compile/RHIANNON  i386

>Description:

The discard device does not set ifq_maxlen, so you will get a warning to
that effect every time you boot a kernel with a discard device configured,
or load the kld.

>How-To-Repeat:

Two possibilities:

1) Boot a kernel with a discard device configured

2) Load the if_disc.ko kld

>Fix:

--- if_disc.c.orig	Sun Dec 13 20:59:16 1998
+++ if_disc.c	Sat Mar  6 16:19:29 1999
@@ -82,6 +82,7 @@
 	ifp->if_ioctl = discioctl;
 	ifp->if_output = discoutput;
 	ifp->if_type = IFT_LOOP;
+	ifp->if_snd.ifq_maxlen = ifqmaxlen;
 	ifp->if_hdrlen = 0;
 	ifp->if_addrlen = 0;
 	if_attach(ifp);


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903062139.QAA03767>