Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2008 17:57:09 +0200
From:      "Yony Yossef" <yonyossef.lists@gmail.com>
To:        "Max Laier" <max@love2party.net>
Cc:        freebsd-hackers@freebsd.org, Yehonatan Yossef <yoniy@mellanox.co.il>, liranl@mellanox.co.il
Subject:   Re: VLAN offloads on FreeBSD 6.3 & 7.0
Message-ID:  <20def4870811160757v76bec46bt5cb134388b7d733f@mail.gmail.com>
In-Reply-To: <200811161608.51813.max@love2party.net>
References:  <20def4870811160610l5289267erfd7abafb9916b706@mail.gmail.com> <200811161608.51813.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks! it looks like a solution.

On Sun, Nov 16, 2008 at 5:08 PM, Max Laier <max@love2party.net> wrote:
> On Sunday 16 November 2008 15:10:19 Yony Yossef wrote:
>> 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?
>
> See http://svn.freebsd.org/viewvc/base?view=revision&revision=180510 for the
> VLAN tag issue.  Simply EVENTHANDLER_REGISTER a function in your driver to
> update the hw-table on config/unconfig events.  I hope this helps.
>
> --
> /"\  Best regards,                      | mlaier@freebsd.org
> \ /  Max Laier                          | ICQ #67774661
>  X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
> / \  ASCII Ribbon Campaign              | Against HTML Mail and News
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20def4870811160757v76bec46bt5cb134388b7d733f>