diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-11-02 02:17:23 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-11-02 02:17:23 +0000 |
commit | 8ba1c65fb52377cc51d08bc15a56bf85ea7fe3f2 (patch) | |
tree | 5db3af091fd2bd698c7768b517fd34c560ca47c6 /sys/dev/pci | |
parent | 7296b474e3c70044ad85f60837d4b868a244a127 (diff) |
set the proper maximum queue length.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_vic.c | 4 |
1 files 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 <reyk@openbsd.org> @@ -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; |