From owner-freebsd-current@FreeBSD.ORG Tue Jun 9 13:27:42 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28B41106564A for ; Tue, 9 Jun 2009 13:27:42 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from inbound01.jnb1.gp-online.net (inbound01.jnb1.gp-online.net [41.161.16.135]) by mx1.freebsd.org (Postfix) with ESMTP id AF3BB8FC13 for ; Tue, 9 Jun 2009 13:27:41 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from [41.154.1.178] (helo=clue.co.za) by inbound01.jnb1.gp-online.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1ME1Ma-0007BS-Bd; Tue, 09 Jun 2009 15:27:40 +0200 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1ME1Ma-0001LQ-6t; Tue, 09 Jun 2009 15:27:40 +0200 To: pyunyh@gmail.com From: Ian FREISLICH In-Reply-To: <20090609122140.GB59401@michelle.cdnetworks.co.kr> References: <20090609122140.GB59401@michelle.cdnetworks.co.kr> X-Attribution: BOFH Date: Tue, 09 Jun 2009 15:27:40 +0200 Message-Id: Cc: current@freebsd.org Subject: Re: mixed VLAN problems on msk(4) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 13:27:42 -0000 Pyun YongHyeon wrote: > On Tue, Jun 09, 2009 at 12:58:23PM +0200, Ian Freislich wrote: > > Hi > > > > Debugging some network problems last night, I noticed that I'd get > > packet loss on a mixed tagged/untagged network every time a tagged > > VLAN packet arrived, so long as hardware VLAN support was enabled > > on my NIC. The moment hardware tagging was disabled (manually, or > > by tcpdump) the packet loss disappeared. > > > > My msk(4) hardware: > > > > mskc0@pci0:2:0:0: class=0x020000 card=0x532111ab chip=0x436211ab rev= 0x22 hdr=0x00 > > vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)' > > device = 'Marvell Yukon 88E8053 PCI-E Gigabit Ethernet Controller ( 88E8053)' > > class = network > > subclass = ethernet > > cap 01[48] = powerspec 2 supports D0 D1 D2 D3 current D0 > > cap 03[50] = VPD > > cap 05[5c] = MSI supports 2 messages, 64 bit enabled with 2 messages > > cap 10[e0] = PCI-Express 1 legacy endpoint max data 128(128) link x1(x1 ) > > > > The switch was configured as follows: > > > > Port is member in: > > > > Vlan Name Egress rule Port Membership Type > > ---- -------------------------------- ----------- -------------------- > > 14 14 Untagged Static > > 26 26 Tagged Static > > 1000 1000 Tagged Static > > > > It appears not to matter whether the vlans are configured with the > > msk(4) interface as the parent or not. For example, whenever one > > of these broadcasts is recieved: > > > > 12:49:36.093250 IP 41.154.87.2 > 224.0.0.18: VRRPv2, Advertisement, vrid 19 , prio 0, authtype none, intvl 1s, length 36 > > 12:49:37.097514 IP 41.154.87.2 > 224.0.0.18: VRRPv2, Advertisement, vrid 19 , prio 0, authtype none, intvl 1s, length 36 > > 12:49:38.099525 IP 41.154.87.2 > 224.0.0.18: VRRPv2, Advertisement, vrid 19 , prio 0, authtype none, intvl 1s, length 36 > > > > traffic to the untagged address on vlan14 (basically the address > > on msk0) is dropped. If I disable vlanhwtag on msk0, the interface > > suffers no packet loss on reciept of tagged frames. > > > > Would you show me the output of "sysctl hw.busdma"? hw.busdma.total_bpages: 512 hw.busdma.zone0.total_bpages: 512 hw.busdma.zone0.free_bpages: 512 hw.busdma.zone0.reserved_bpages: 0 hw.busdma.zone0.active_bpages: 0 hw.busdma.zone0.total_bounced: 0 hw.busdma.zone0.total_deferred: 0 hw.busdma.zone0.lowaddr: 0xffffffff hw.busdma.zone0.alignment: 4096 Ian -- Ian Freislich