summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2008-08-07 17:56:51 +0000
committerbrad <brad@openbsd.org>2008-08-07 17:56:51 +0000
commitf67a378837825746f17768c1636e9250414d67fa (patch)
treed43c2404a8803bca7e11fa474cc3f2722d4b2328
parentdon't wait for a free mbuf cluster in sosend() and enter the existing (diff)
downloadwireguard-openbsd-f67a378837825746f17768c1636e9250414d67fa.tar.xz
wireguard-openbsd-f67a378837825746f17768c1636e9250414d67fa.zip
- Enable ALTQ support.
- Let the VLAN driver know that the hw can send and receive full size VLAN tagged packets. Tested by maja@
-rw-r--r--sys/arch/socppc/dev/if_tsec.c6
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;