Please pay attention to fix bug kern/141285

Pyun YongHyeon pyunyh at gmail.com
Fri Mar 19 17:45:25 UTC 2010


On Fri, Mar 19, 2010 at 04:40:44PM +0200, Prokofyev S.P. wrote:
> Hi ALL !
> 
> Please pay attention to fix bug kern/141285(kern/141843) !
> 

igb(4) also has a similar issue but it seems igb(4) does not even
advertise IFCAP_VLAN_HWFILTER capability. igb(4) may have to remove
VLAN event handler or should implement IFCAP_VLAN_HWFILTER to
support VLAN hardware filtering.

I have a patch for the hardware VLAN filtering of em(4). But it
wouldn't address the issue reported in the PR. The root cause of
issue was em(4) wants to reset controller whenever new VLAN is
registered/unregistered. I'm not sure this is requirement of
hardware. If this is requirement of hardware there is no way to
avoid the controller reset unless you disable vlanhwfilter feature.

#ifconfig em0 -vlanhwfilter

em(4) in HEAD disabled VLAN hardware filtering by default so if you
use that version you wouldn't encounter the issue again. Attached
patch is small diff for VLAN hardware filtering which tries to
avoid unnecessary controller reset and added missing lock. If
hardware allows dynamic changing of VLAN filtering table we could
completely bypass the controller reset. Jack may know the details.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: em.vlan_hwfilter.patch
Type: text/x-diff
Size: 1089 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20100319/69141e51/em.vlan_hwfilter.bin


More information about the freebsd-net mailing list