From 7b8bc2b70f1751dfd8b0ce67658c24eeb8d1e546 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 30 Jan 2009 13:04:29 +0000 Subject: Set mbuf watermarks. --- sys/arch/socppc/dev/if_tsec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch') diff --git a/sys/arch/socppc/dev/if_tsec.c b/sys/arch/socppc/dev/if_tsec.c index cd5ccd1a4da..254ffbc50e4 100644 --- a/sys/arch/socppc/dev/if_tsec.c +++ b/sys/arch/socppc/dev/if_tsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tsec.c,v 1.19 2009/01/30 12:47:15 kettenis Exp $ */ +/* $OpenBSD: if_tsec.c,v 1.20 2009/01/30 13:04:28 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -359,6 +359,8 @@ tsec_attach(struct device *parent, struct device *self, void *aux) IFQ_SET_READY(&ifp->if_snd); bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ); + m_clsetwms(ifp, MCLBYTES, 0, TSEC_NRXDESC); + ifp->if_capabilities = IFCAP_VLAN_MTU; sc->sc_mii.mii_ifp = ifp; -- cgit v1.2.3