diff options
Diffstat (limited to 'sys/arch/socppc/dev/if_tsec.c')
-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; |