VLAN offloads on FreeBSD 6.3 & 7.0
Yony Yossef
yonyossef.lists at gmail.com
Sun Nov 16 06:10:20 PST 2008
Hi All,
I'm working on an Ethernet driver for FreeBSD, currently implementing
VLAN offloads.
I have two problems, one is enabling TSO over the VLAN interface and
the second is enabling the VLAN filtering offload.
About the TSO problem, I'm currently suffering a hugh performance
penalty since I have no TSO enabled over my vlan interfaces.
When I create a VLAN interface it does not inherit the features of
it's mother-interface, e.g. IFCAP_TSO.
Can it be done on FreeBSD 6.3 / 7.0 ?
Second, my NIC is capable of holding a vlan table on HW, filtering
vlans on it's own, now I need to find a way to update that HW table
with added/deleted VLANs in order to use that VLAN filtering offload.
One way is to recieve a ioctl from the OS of it's vlan table events
(add, remove). I can't find such ioctl.
Second way is to have direct access from the driver to the OS vlan
table. I'm not familiar with the interface though (something parallel
to vlan_group_get_device on linux) or if it's possible at all, can
anyone help on this one?
Thanks,
Yony
More information about the freebsd-hackers
mailing list