diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-08-07 17:56:52 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-08-07 17:56:52 +0000 |
commit | f56164569dcc10a8ac839221c27a2d523d24c85b (patch) | |
tree | 1c0791965a8aa258abbef1e797bf29eaf2c8c620 /sys/arch | |
parent | 30de52a4bc43f345d92a6c67e52e853ee6137ed9 (diff) |
- Enable ALTQ support.
- Let the VLAN driver know that the hw can send and receive full size
VLAN tagged packets.
Tested by maja@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/socppc/dev/if_tsec.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |