From 8ba1c65fb52377cc51d08bc15a56bf85ea7fe3f2 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 2 Nov 2006 02:17:23 +0000 Subject: set the proper maximum queue length. --- sys/dev/pci/if_vic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c index dd16fab35d0..91bf199fde5 100644 --- a/sys/dev/pci/if_vic.c +++ b/sys/dev/pci/if_vic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vic.c,v 1.21 2006/11/02 02:10:12 dlg Exp $ */ +/* $OpenBSD: if_vic.c,v 1.22 2006/11/02 02:17:22 brad Exp $ */ /* * Copyright (c) 2006 Reyk Floeter @@ -224,7 +224,7 @@ vic_attach(struct device *parent, struct device *self, void *aux) ifp->if_watchdog = vic_watchdog; ifp->if_hardmtu = VIC_JUMBO_MTU; strlcpy(ifp->if_xname, DEVNAME(sc), IFNAMSIZ); - IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen); + IFQ_SET_MAXLEN(&ifp->if_snd, sc->sc_ntxbuf - 1); IFQ_SET_READY(&ifp->if_snd); ifp->if_capabilities = IFCAP_VLAN_MTU; -- cgit v1.2.3