Vlan EVENT patch

Pyun YongHyeon pyunyh at gmail.com
Wed Jun 11 07:35:25 UTC 2008


On Tue, Jun 10, 2008 at 09:51:53AM -0700, Jack Vogel wrote:
 > This is a small patch that Sam came up with for me, it will allow
 > drivers to know
 > when a vlan attaches.
 > 
 > It is transparent to any code that doesn't want to change, but this
 > will allow my
 > drivers to finally utilize the vlan hardware filter (something Linux has had for
 > ever but we lacked).
 > 

Just curious, is there any rule how to use that new capability?
Because drivers will receive events whenever VLAN tags are
added/removed they would know how to act for these events. If
promiscuous mode is on for interface, driver should not filter any
VLAN tagged frames, right?
If users want to disable VLAN hardware filtering feature what is
best way to perform this? Introducing a new flag like
IFCAP_VLAN_HWFILT or add a new sysctl that control this feature?
I guess VIA Rhine III also have VLAN hardware filtering capability
so it would be even better if we have a way to share common part.

 > My test group has done some basic testing of this and it is working great.
 > But we wanted to give any vlan users a chance to see, ask questions, or
 > whatever before its committed.
 > 
 > Jack
-- 
Regards,
Pyun YongHyeon


More information about the freebsd-net mailing list