summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorChris Cappuccio <chris@cvs.openbsd.org>2001-08-03 23:31:53 +0000
committerChris Cappuccio <chris@cvs.openbsd.org>2001-08-03 23:31:53 +0000
commite3fd5da03b391064683a399cc30a8f9845d988cf (patch)
tree6e52febebc515ff353fcae3c7dec696af7e42027 /sys
parent59519dae154901d0ae9b372f7bb5ad3342fd71e6 (diff)
This driver allows vlan sized frames on 905B, set IFCAP_VLAN_MTU on that chip
Diffstat (limited to 'sys')
-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);