From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 17 06:17:16 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9AE81065672 for ; Mon, 17 Nov 2008 06:17:16 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 57F678FC0C for ; Mon, 17 Nov 2008 06:17:15 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so945004yxb.13 for ; Sun, 16 Nov 2008 22:17:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fGOHrWHCgk/GRjvcgtGedW8KRq0DdXzecIgWY2hDe0E=; b=rRyvT7yiyoiWHDbH0Gff1qvNJLjHOwdMBW/np08h/o76cq41ScUbtzG0n86jIZnGDx eC39A4onsHoHDv312uRS4/n5LIvRKjlSK/89x+ibNE4saa45cCpaoIdl73R8HifJAwsl wBcd7DL1Yj8I269IHpDRufU/Yf7e8qTx4cwN8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=bfDBuf5UEQ30WgzgJci8nYCmwq3iOz4P2CDu7DaFmCsO8Nut8Vj24ef6ub9ZGpgRJQ PywFrp2IRQ7SLb95aBgu1zzGqP5bFQhKvpFLk3YWEqMK18WB2kUROx4kk8bcZQ5pIcca 2wNDh/6+om+no/GCquUGqUrceOD3ZW1bvdBE8= Received: by 10.151.145.21 with SMTP id x21mr7281229ybn.130.1226902635126; Sun, 16 Nov 2008 22:17:15 -0800 (PST) Received: by 10.150.124.5 with HTTP; Sun, 16 Nov 2008 22:17:15 -0800 (PST) Message-ID: <20def4870811162217t7aef5cb2m5f8989c405c0a9c@mail.gmail.com> Date: Mon, 17 Nov 2008 08:17:15 +0200 From: "Yony Yossef" To: "Max Laier" In-Reply-To: <200811161608.51813.max@love2party.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20def4870811160610l5289267erfd7abafb9916b706@mail.gmail.com> <200811161608.51813.max@love2party.net> Cc: freebsd-hackers@freebsd.org, Yehonatan Yossef Subject: Re: VLAN offloads on FreeBSD 6.3 & 7.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2008 06:17:16 -0000 Hi Max, do you happen to know if TSO (as other capabilities) can be enabled on a VLAN interface? I've already posted this question so I'm not sending this mail to the list. On Sun, Nov 16, 2008 at 5:08 PM, Max Laier 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 >