Subject: Re: HW-assisted VLAN handling
To: Jason Thorpe <>
From: Jaromir Dolecek <>
List: tech-kern
Date: 01/30/2005 21:01:45
Jason Thorpe wrote:
> > The patch:
> > * adds list of vlans ethernet interface is configured for to ethercom
> > * adds a ETHERCAP_VLAN_HWFILTER capability, if set the driver is
> >   notified via ioctl when a vlan is attached or detached
> >
> > This works fine for my needs.
> So, what is the chip supposed to do with VLANs that aren't in its 
> filter list?  Is it supposed to drop them?

If it is able to do this in HW, the driver can program the chip
to drop the packets. Otherwise do what's doing now, i.e. pass
VLAN-tagged messages down if_input(), which would take care to sort
it out. I.e. it'd be totally optional and up to the driver if it
uses the information.

Jaromir Dolecek <>  
-=- We can walk our road together if our goals are all the same;     -=-
-=- We can run alone and free if we pursue a different aim.          -=-