diff options
author | 2001-08-03 23:31:52 +0000 | |
---|---|---|
committer | 2001-08-03 23:31:52 +0000 | |
commit | c2bcc594ed0fce020bf4253c197a4f07ef5c6ab4 (patch) | |
tree | f2d3a4edc3fc4240c9dee2d1c425e84775416ad1 | |
parent | Fix logic for detecting 82558 and newer chips in pci; (diff) | |
download | wireguard-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.c | 12 |
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); |