summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchris <chris@openbsd.org>2001-08-03 23:31:52 +0000
committerchris <chris@openbsd.org>2001-08-03 23:31:52 +0000
commitc2bcc594ed0fce020bf4253c197a4f07ef5c6ab4 (patch)
treef2d3a4edc3fc4240c9dee2d1c425e84775416ad1
parentFix logic for detecting 82558 and newer chips in pci; (diff)
downloadwireguard-openbsd-c2bcc594ed0fce020bf4253c197a4f07ef5c6ab4.tar.xz
wireguard-openbsd-c2bcc594ed0fce020bf4253c197a4f07ef5c6ab4.zip
This driver allows vlan sized frames on 905B, set IFCAP_VLAN_MTU on that chip
-rw-r--r--sys/dev/ic/xl.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index 316262c8dda..652b99a2be1 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.26 2001/07/02 01:28:21 jason Exp $ */
+/* $OpenBSD: xl.c,v 1.27 2001/08/03 23:31:52 chris Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -2500,6 +2500,16 @@ xl_attach(sc)
IFQ_SET_READY(&ifp->if_snd);
bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
+#if NVLAN > 0
+ if (sc->xl_type == XL_TYPE_905B)
+ ifp->if_capabilities = IFCAP_VLAN_MTU;
+ /*
+ * XXX
+ * Do other cards filter large packets or simply pass them through?
+ * Apparently only the 905B has the capability to set a larger size.
+ */
+#endif
+
XL_SEL_WIN(3);
sc->xl_media = CSR_READ_2(sc, XL_W3_MEDIA_OPT);