From e3fd5da03b391064683a399cc30a8f9845d988cf Mon Sep 17 00:00:00 2001 From: Chris Cappuccio Date: Fri, 3 Aug 2001 23:31:53 +0000 Subject: This driver allows vlan sized frames on 905B, set IFCAP_VLAN_MTU on that chip --- sys/dev/ic/xl.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3