From f67a378837825746f17768c1636e9250414d67fa Mon Sep 17 00:00:00 2001 From: brad Date: Thu, 7 Aug 2008 17:56:51 +0000 Subject: [PATCH] - Enable ALTQ support. - Let the VLAN driver know that the hw can send and receive full size VLAN tagged packets. Tested by maja@ --- sys/arch/socppc/dev/if_tsec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/socppc/dev/if_tsec.c b/sys/arch/socppc/dev/if_tsec.c index a6fe1492a30..cd8bf14c61f 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.10 2008/05/26 21:08:47 kettenis Exp $ */ +/* $OpenBSD: if_tsec.c,v 1.11 2008/08/07 17:56:51 brad Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -341,8 +341,12 @@ tsec_attach(struct device *parent, struct device *self, void *aux) ifp->if_start = tsec_start; ifp->if_watchdog = tsec_watchdog; ifp->if_baudrate = IF_Gbps(1); + IFQ_SET_MAXLEN(&ifp->if_snd, TSEC_NTXDESC - 1); + IFQ_SET_READY(&ifp->if_snd); bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ); + ifp->if_capabilities = IFCAP_VLAN_MTU; + sc->sc_mii.mii_ifp = ifp; sc->sc_mii.mii_readreg = tsec_mii_readreg; sc->sc_mii.mii_writereg = tsec_mii_writereg; -- 2.20.1