diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2001-08-03 23:28:50 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2001-08-03 23:28:50 +0000 |
commit | 59519dae154901d0ae9b372f7bb5ad3342fd71e6 (patch) | |
tree | 4caf64ba2810299060dda3c481a816e10448cb0b /sys/dev/ic/fxp.c | |
parent | 0300545a34b0b9c390acfe754f716da8fba4dfdb (diff) |
Fix logic for detecting 82558 and newer chips in pci;
This driver allows large frames for those chips so set IFCAP_VLAN_MTU
for 82558+
Diffstat (limited to 'sys/dev/ic/fxp.c')
-rw-r--r-- | sys/dev/ic/fxp.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c index 39a250acd4b..7b022c0e36f 100644 --- a/sys/dev/ic/fxp.c +++ b/sys/dev/ic/fxp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fxp.c,v 1.21 2001/07/18 19:32:01 mickey Exp $ */ +/* $OpenBSD: fxp.c,v 1.22 2001/08/03 23:28:49 chris Exp $ */ /* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */ /* @@ -38,6 +38,7 @@ */ #include "bpfilter.h" +#include "vlan.h" #include <sys/param.h> #include <sys/systm.h> @@ -365,6 +366,14 @@ fxp_attach_common(sc, enaddr, intrstr) ifp->if_watchdog = fxp_watchdog; IFQ_SET_READY(&ifp->if_snd); +#if NVLAN > 0 + if (sc->not_82557) + ifp->if_capabilities |= IFCAP_VLAN_MTU; + /* + * Only 82558 and newer cards have a bit to ignore oversized frames. + */ +#endif + printf(": %s, address %s\n", intrstr, ether_sprintf(sc->arpcom.ac_enaddr)); |