]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Unbreak non-H/W VLAN extraction case.
authorPyun YongHyeon <yongari@FreeBSD.org>
Thu, 15 Feb 2007 06:21:34 +0000 (06:21 +0000)
committerPyun YongHyeon <yongari@FreeBSD.org>
Thu, 15 Feb 2007 06:21:34 +0000 (06:21 +0000)
commit71e8866707fbc275e45918d656a030d07c85aae4
tree342da5accf962b711c053c377bef0ddaca93ef8a
parentd3d029bd62103efca62b548b247a8dae561bb691
Unbreak non-H/W VLAN extraction case.
Unlike other GigEs Yukon II always set VLAN bit when it detects VLAN
tagged packet regardless of H/W VLAN processing configuration state.
So it need to check IFCAP_VLAN_HWTAGGING bit to know whether driver
is configured to take advantage of H/W VLAN processing. If H/W VLAN
processing was disabled don't adjust received packet length such that
subsequent validation logic works for software VLAN processing.

Reported by: bms
Tested by: bms
sys/dev/msk/if_msk.c