From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 16 14:10:20 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 371921065679 for ; Sun, 16 Nov 2008 14:10:20 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from mail-gx0-f13.google.com (mail-gx0-f13.google.com [209.85.217.13]) by mx1.freebsd.org (Postfix) with ESMTP id EAB888FC12 for ; Sun, 16 Nov 2008 14:10:19 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by gxk6 with SMTP id 6so743500gxk.19 for ; Sun, 16 Nov 2008 06:10:19 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=TmP6+oOCqv+DraBKUvzWACmUV2H5zBcuAvE+ummc04U=; b=JRp00Vj2erxz+O9YgcnxONG1oGMu+rWm3ZpToZXLOcCa1zsLZG9Px44R3qO7hF/Twm usju02TKV/NbZlFte9KZlilGKGjVmIfrvh1s5V17YsguWhiG24xhJtclKAjvd2/Yu3/n oZRGWHpou7oOwoVKTGMS2I0OocNuuwC5b0FwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=cAJy31oklrgazt7biAZWDOL8gzP4gy9TIgp9U6IFl8bCylxTvqTN1rhXjd9ZXN4nf5 Tw5EiYchCBzWA8JMMjKrHe+r1ibJfJ+eKMrufTbEp1JM4b9uxUvIc1CtdqgEu09YTUVQ CnkaaXVZmex8+ZMrlNzSh/e8DzHCVjwQFXBqY= Received: by 10.150.145.20 with SMTP id s20mr5872439ybd.126.1226844619175; Sun, 16 Nov 2008 06:10:19 -0800 (PST) Received: by 10.150.124.5 with HTTP; Sun, 16 Nov 2008 06:10:19 -0800 (PST) Message-ID: <20def4870811160610l5289267erfd7abafb9916b706@mail.gmail.com> Date: Sun, 16 Nov 2008 16:10:19 +0200 From: "Yony Yossef" To: freebsd-hackers@freebsd.org, "Yehonatan Yossef" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: 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: Sun, 16 Nov 2008 14:10:20 -0000 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