summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-02-01 20:03:27 +0000
committerphk <phk@FreeBSD.org>1999-02-01 20:03:27 +0000
commitfe7fd0a5056872dff3e29298c9e2209b01df33a0 (patch)
treeff5089d0f160f984f2d3b6401844d4baeb46dacb /sys/net
parentdbe2de7c7a17df55c7b3d8f95f92a83f8fea0d64 (diff)
downloadFreeBSD-src-fe7fd0a5056872dff3e29298c9e2209b01df33a0.zip
FreeBSD-src-fe7fd0a5056872dff3e29298c9e2209b01df33a0.tar.gz
Print a message if the driver didn't initialize ifq_maxlen.
Drivers should be updated if they get flagged by this message. (The reason this is important is because we do not have a way to catch this mistake for interfaces added after ifinit() runs.)
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index b0c7be7..da7c495 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if.c 8.3 (Berkeley) 1/4/94
- * $Id: if.c,v 1.63 1998/12/04 22:54:52 archie Exp $
+ * $Id: if.c,v 1.64 1998/12/16 18:30:42 phk Exp $
*/
#include "opt_compat.h"
@@ -87,8 +87,11 @@ ifinit(dummy)
register struct ifnet *ifp;
for (ifp = ifnet.tqh_first; ifp; ifp = ifp->if_link.tqe_next)
- if (ifp->if_snd.ifq_maxlen == 0)
+ if (ifp->if_snd.ifq_maxlen == 0) {
+ printf("%s%d XXX: driver didn't set ifq_maxlen\n",
+ ifp->if_name, ifp->if_unit);
ifp->if_snd.ifq_maxlen = ifqmaxlen;
+ }
if_slowtimo(0);
}
OpenPOWER on IntegriCloud