Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Set snd queue size to max(WM_IFQUEUELEN, IFQ_MAX...
details: https://anonhg.NetBSD.org/src/rev/0eb256060f5e
branches: trunk
changeset: 553952:0eb256060f5e
user: ragge <ragge%NetBSD.org@localhost>
date: Thu Oct 23 12:53:02 2003 +0000
description:
Set snd queue size to max(WM_IFQUEUELEN, IFQ_MAXLEN), instead of hard to
WM_IFQUEUELEN.
diffstat:
sys/dev/pci/if_wm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 28095107cfb2 -r 0eb256060f5e sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Thu Oct 23 10:50:01 2003 +0000
+++ b/sys/dev/pci/if_wm.c Thu Oct 23 12:53:02 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.57 2003/10/22 15:50:39 thorpej Exp $ */
+/* $NetBSD: if_wm.c,v 1.58 2003/10/23 12:53:02 ragge Exp $ */
/*
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.57 2003/10/22 15:50:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.58 2003/10/23 12:53:02 ragge Exp $");
#include "bpfilter.h"
#include "rnd.h"
@@ -1117,7 +1117,7 @@
ifp->if_watchdog = wm_watchdog;
ifp->if_init = wm_init;
ifp->if_stop = wm_stop;
- IFQ_SET_MAXLEN(&ifp->if_snd, WM_IFQUEUELEN);
+ IFQ_SET_MAXLEN(&ifp->if_snd, max(WM_IFQUEUELEN, IFQ_MAXLEN));
IFQ_SET_READY(&ifp->if_snd);
sc->sc_ethercom.ec_capabilities |= ETHERCAP_JUMBO_MTU;
Home |
Main Index |
Thread Index |
Old Index