diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-06-18 19:11:50 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-06-18 19:11:50 +0000 |
commit | cba2bef2bd0999474c0621c93a201937bf569ca2 (patch) | |
tree | 4f13a064e1effa083b55f73e1065f81206880651 /sys/arch/sparc/dev/hme.c | |
parent | 75114bcc87d6a873aea66715e75df92f151c5939 (diff) |
configure the interface to properly support vlan frames
Diffstat (limited to 'sys/arch/sparc/dev/hme.c')
-rw-r--r-- | sys/arch/sparc/dev/hme.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index 3db66378d94..d25c807bf94 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.41 2003/06/02 18:40:59 jason Exp $ */ +/* $OpenBSD: hme.c,v 1.42 2003/06/18 19:11:49 jason Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -36,6 +36,9 @@ * this driver. */ +#include "bpfilter.h" +#include "vlan.h" + #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -61,12 +64,15 @@ #include <netinet/if_ether.h> #endif -#include "bpfilter.h" #if NBPFILTER > 0 #include <net/bpf.h> #include <net/bpfdesc.h> #endif +#if NVLAN > 0 +#include <net/if_vlan_var.h> +#endif + #include <machine/autoconf.h> #include <sparc/cpu.h> #include <sparc/sparc/cpuvar.h> @@ -242,6 +248,7 @@ hmeattach(parent, self, aux) ifp->if_watchdog = hmewatchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS | IFF_MULTICAST; + ifp->if_capabilities |= IFCAP_VLAN_MTU; IFQ_SET_MAXLEN(&ifp->if_snd, HME_TX_RING_SIZE); IFQ_SET_READY(&ifp->if_snd); @@ -542,6 +549,7 @@ hmeinit(sc) sc->sc_arpcom.ac_enaddr[3]; cr->mac_addr2 = (sc->sc_arpcom.ac_enaddr[4] << 8) | sc->sc_arpcom.ac_enaddr[5]; + cr->tx_pkt_max = cr->rx_pkt_max = HME_MTU; cr->jsize = HME_DEFAULT_JSIZE; cr->ipkt_gap1 = HME_DEFAULT_IPKT_GAP1; |