Subject: Re: HW-assisted VLAN handling
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
List: tech-kern
Date: 01/29/2005 17:42:00
On Sat, 29 Jan 2005 14:52:39 +0100 (CET)
jdolecek@NetBSD.org (Jaromir Dolecek) wrote:

> How do other drivers deal with this? I don't see any special handling
> in stge(4), bge(4) at least. Do the other drivers just accept all
> vlan-tagged packets and let vlan_input() sort it out?
When I wrote iee(4) (sys/dev/ic/i82596.c) all I had to do for vlan(4)
support was:
	sc->sc_ethercom.ec_capabilities |=3D ETHERCAP_VLAN_MTU;
Packets with a vlan(4) header get feed to if_input() as any other packet
and the network stack sorts out the vlan(4) stuff automagicaly.
--=20


tsch=FC=DF,
       Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/