From owner-freebsd-net@FreeBSD.ORG Tue Oct 14 06:37:06 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65BB3106569B for ; Tue, 14 Oct 2008 06:37:06 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id 2EFC68FC0C for ; Tue, 14 Oct 2008 06:37:05 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1841810rvf.43 for ; Mon, 13 Oct 2008 23:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=yumrfzR8LQ2Cy2Os6p+PsAMKfbuGXg80qWzRDw4Xbq0=; b=ZJQA0dglYUY7u1HUbZaiCx8tuHDlmWz5pvFWyAFuCuaO7hPRguN7O9bk11ys12J/kj SWpWeEuvhJcH66iFmJQxVvkdZwSRUNk6ktTEat/flKLHWxK2rfsHdywDCousGnCicEBi kKjW65EHfBhuanR+pqTl+IsQKhup2NUtqt7q0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=W6P1dLRCyU6IQ+oZWYvOxouZEQ0l3dhWteWOUedNqztf1hVdCvFvVVWlk7wF/ACu6+ oJzV8/SJL/MGr2WaCw6XDXl2zypSj+1vRvq6xoLVyaSjt/uONhcuGCvwN9YlD3HX5JVI cDvmFQcaj24Z9qL3bkkrYjmhi43VpHwYGjkiQ= Received: by 10.141.71.14 with SMTP id y14mr4564342rvk.24.1223966225722; Mon, 13 Oct 2008 23:37:05 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id g31sm2578573rvb.7.2008.10.13.23.37.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Oct 2008 23:37:04 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m9E6Z4sd015937 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Oct 2008 15:35:04 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m9E6Z4ci015936; Tue, 14 Oct 2008 15:35:04 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 14 Oct 2008 15:35:04 +0900 From: Pyun YongHyeon To: Ivan Voras Message-ID: <20081014063504.GD14769@cdnetworks.co.kr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: VLANs and hardware options X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 06:37:06 -0000 On Mon, Oct 13, 2008 at 05:26:04PM +0200, Ivan Voras wrote: > I have the following situation: > > bce0: flags=8802 metric 0 mtu 1500 > options=1bb > ether 00:14:5e:6d:2d:74 > media: Ethernet autoselect (1000baseSX ) > status: active > > vlan0: flags=8843 metric 0 mtu 1500 > options=3 > ether 00:14:5e:b3:2a:38 > inet xx.xx.xx.xx netmask 0xffffff00 broadcast xx.xx.xx.255 > media: Ethernet autoselect (1000baseSX ) > status: active > vlan: 250 parent interface: bce1 > > e.g. the network card is directly on a trunked network, and I have the > vlan interface with actual IP address. My question is: since this setup > mixes various network&protocol layers, are the TSO capabilities of the > card used? I guess not and that only RXCSUM & TXCSUM are used (for > IP-level packets). > Correct. I believe almost all gigabit controllers can handle TSO with VLAN tagging. Unfortunately there is no official way to inform TSO capability of parent interface to VLAN layer in FreeBSD. Just adding a new flag to if_capabilities and minor patch to vlan(4) would make TSO work on vlan interface. But I haven't had time to implement this as my working environment does not involve VLANs. -- Regards, Pyun YongHyeon