summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2006-11-02 02:17:22 +0000
committerbrad <brad@openbsd.org>2006-11-02 02:17:22 +0000
commit9cddd5c2d08d759202066740a423d646e4b37173 (patch)
treec998514885bfd65b1b847e397d22c3dc06de38d3
parentwe sync regions in the dma area anymore, we just sync the whole thing. this (diff)
downloadwireguard-openbsd-9cddd5c2d08d759202066740a423d646e4b37173.tar.xz
wireguard-openbsd-9cddd5c2d08d759202066740a423d646e4b37173.zip
set the proper maximum queue length.
-rw-r--r--sys/dev/pci/if_vic.c4
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;