summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-02-01 14:05:53 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-02-01 14:05:53 +0000
commitebde4e08eed01caa90a02b01527e2ab0bb2df64d (patch)
treefc2043a3165c92cd100e619578961c66c1fcc0b7 /sys
parentff52562aeb087335169a0c6354e821c2f9776a24 (diff)
use m_clsetwms to tell the allocator how big the rings are.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_vic.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c
index 6281c6260c9..68de81af5b0 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.69 2008/12/30 12:27:57 reyk Exp $ */
+/* $OpenBSD: if_vic.c,v 1.70 2009/02/01 14:05:52 dlg Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
@@ -487,6 +487,9 @@ vic_attach(struct device *parent, struct device *self, void *aux)
IFQ_SET_MAXLEN(&ifp->if_snd, sc->sc_ntxbuf - 1);
IFQ_SET_READY(&ifp->if_snd);
+ m_clsetwms(ifp, MCLBYTES, 2, sc->sc_nrxbuf - 1);
+ m_clsetwms(ifp, 4096, 2, sc->sc_nrxbuf - 1);
+
ifp->if_capabilities = IFCAP_VLAN_MTU;
#if 0