From owner-freebsd-current@FreeBSD.ORG Mon Jul 31 05:43:52 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3022416A4DD for ; Mon, 31 Jul 2006 05:43:52 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7932D43D45 for ; Mon, 31 Jul 2006 05:43:51 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by nz-out-0102.google.com with SMTP id 13so131999nzn for ; Sun, 30 Jul 2006 22:43:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=abbBRGMZC5H/6QWTA8/GGjyJJcbfS/Ngjycd9Y0QBe3bj+2wYBsjyJH92Ul/pfViCOmhft6L0LKLP/XuCnTQjhOLo8v2mL5yyZZNxouo01emOu1g4oWpMC2Uu6DND8TPvU+gPspb6mb558oe5V764pcHkPzhmH5r6KLO/U3PdSY= Received: by 10.65.139.9 with SMTP id r9mr2908478qbn; Sun, 30 Jul 2006 22:43:50 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 38sm123664nza.2006.07.30.22.43.48; Sun, 30 Jul 2006 22:43:50 -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 k6V5iMcU036578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Jul 2006 14:44:22 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k6V5iLJ1036577; Mon, 31 Jul 2006 14:44:21 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 31 Jul 2006 14:44:21 +0900 From: Pyun YongHyeon To: Ian FREISLICH Message-ID: <20060731054421.GB35573@cdnetworks.co.kr> References: <20060726022235.GB14991@cdnetworks.co.kr> 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: current@freebsd.org Subject: Re: em promiscuous mode bug? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2006 05:43:52 -0000 On Mon, Jul 31, 2006 at 07:16:03AM +0200, Ian FREISLICH wrote: > Pyun YongHyeon wrote: > > On Tue, Jul 25, 2006 at 08:07:04AM +0200, Ian FREISLICH wrote: > > > Hi > > > > > > It seems that placing an em(4) interface into promiscuous mode the > > > card stops doing hardware offload of 802.1Q tagging, in fact, it > > > stops tagging entirely if vlanhwtag is enabled on the card. > > > > > > With vlanhwtag: > > > 15:40:48.050645 00:00:5e:00:01:02 > 01:00:5e:00:00:12, ethertype IPv4 (0x0 > 800), length 70: (tos 0x10, ttl 255, id 44821, offset 0, flags [DF], proto: VRR > P (112), length: 56) 196.30.82.61 > 224.0.0.18: VRRPv2, Advertisement, vrid 2, > prio 10, authtype none, intvl 1s, length 36, addrs(7): 157.248.206.115,76.246.4 > 2.167,148.235.231.80,70.180.123.113,201.169.28.232,19.31.18.203,59.148.50.175 > > > > > > Without vlanhwtag: > > > 15:40:57.419522 00:00:5e:00:01:02 > 01:00:5e:00:00:12, ethertype 802.1Q (0 > x8100), length 74: vlan 1001, p 0, ethertype IPv4, (tos 0x10, ttl 255, id 44867 > , offset 0, flags [DF], proto: VRRP (112), length: 56) 196.30.82.61 > 224.0.0.1 > 8: VRRPv2, Advertisement, vrid 2, prio 10, authtype none, intvl 1s, length 36, > addrs(7): 157.248.206.115,76.246.42.176,8.148.142.115,171.178.137.11,211.216.40 > .239,67.124.122.122,253.155.32.152 > > > > > > The interface is placed in promiscuous mode by the carp driver. > > > > > > em0: flags=8943 mtu 1500 > > > options=cb > > > ether 00:04:23:cf:50:00 > > > media: Ethernet autoselect (1000baseTX ) > > > status: active > > > > > > vlan1001: flags=8943 mtu 1 > 500 > > > inet 196.30.82.62 netmask 0xfffffff0 broadcast 196.30.82.63 > > > ether 00:04:23:cf:50:00 > > > media: Ethernet autoselect (1000baseTX ) > > > status: active > > > vlan: 1001 parent interface: em0 > > > > > > carp1001: flags=49 mtu 1500 > > > inet 196.30.82.60 netmask 0xfffffff0 > > > carp: BACKUP vhid 2 advbase 1 advskew 0 > > > > > > > Hardware VLAN tagging was disabled in em(4) when it operates > > in promiscuous mode and em(4) will insert a VLAN tag in the > > driver. > > Um, no. When an em interface with hardware VLAN tagging enabled > is placed in promiscuous mode, it just _stops_ tagging. Entirely. > The 802.1Q vlan just breaks. > Would you try latest em(4) in CURRENT?(if_em.c, rev. 1.122) > Ian > > -- > Ian Freislich -- Regards, Pyun YongHyeon