From owner-freebsd-bugs@FreeBSD.ORG Tue Mar 1 22:55:26 2011 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 229921065670 for ; Tue, 1 Mar 2011 22:55:26 +0000 (UTC) (envelope-from andrei.manescu@ivorde.ro) Received: from mail.ivorde.ro (mail.ivorde.ro [82.76.71.249]) by mx1.freebsd.org (Postfix) with ESMTP id 6AAC58FC19 for ; Tue, 1 Mar 2011 22:55:25 +0000 (UTC) Comment: DomainKeys? See http://domainkeys.sourceforge.net/ DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ivorde.ro; b=VZtDMID8Yxm+yEdG7P6564XfbGHqE853+zude+BpyQy4A3QU8o39t5mkUPGHoCQdTpbNnQ/HlUyQAvPhEX7Veo40FZHmuuIrjocRdfUi2htQ19vFKrTQojDZXvV+OFJx; h=Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=ivorde.ro; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type; s=default; bh=rZ6pPu/82qfNnmw17aC5GyREB5M=; b=qT5 RjjVKgUOeEhI7RyBPh0HDymLMF2GWgQoX0/r0dLPgux+VVhT5i/zl7Pp7NEwSRZC xjKcDPIdsMsrQwdhPMvmICCpe1hdwYTwBQ8mGvDYDAT89OXsxr3Z3oABJ328K Received: (qmail 58786 invoked by uid 1001); 2 Mar 2011 00:25:33 +0200 Received: from ip206-210-210-87.adsl2.static.versatel.nl (HELO ?192.168.0.6?) (andrei.manescu@ivorde.ro@87.210.210.206) by mail.ivorde.ro with AES256-SHA encrypted SMTP; 2 Mar 2011 00:25:33 +0200 Message-ID: <4D6D7317.7070300@ivorde.ro> Date: Tue, 01 Mar 2011 23:28:39 +0100 From: Andrei Manescu - Ivorde User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: yongari@FreeBSD.org References: <201103011819.p21IJ5Bu039230@freefall.freebsd.org> In-Reply-To: <201103011819.p21IJ5Bu039230@freefall.freebsd.org> Content-Type: multipart/mixed; boundary="------------030207010802060800010306" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-bugs@FreeBSD.org, andrei@ivorde.ro Subject: Re: misc/155134: Vlan hwtagging on fxp under 7.4-PRERELEASE doesn't work X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2011 22:55:26 -0000 This is a multi-part message in MIME format. --------------030207010802060800010306 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Thanks for replying. When vlanhwtag is enabled on the fxp physical interface, the packets are not vlan tagged and, sometimes, not replied: [root@thor ~]# ifconfig fe-0/0 fe-0/0: flags=8843 metric 0 mtu 1500 options=211b [root@thor ~]# ifconfig vlan10 vlan10: flags=8843 metric 0 mtu 1500 ether 00:02:b3:9f:ef:86 inet 192.168.3.2 netmask 0xffffff00 broadcast 192.168.3.255 media: Ethernet autoselect (100baseTX ) status: active vlan: 10 parent interface: fe-0/0 Consecutive commands: [root@thor ~]# ping -c 1 192.168.3.1 --> NO REPLY PING 192.168.3.1 (192.168.3.1): 56 data bytes --- 192.168.3.1 ping statistics --- 1 packets transmitted, 0 packets received, 100.0% packet loss [root@thor ~]# ping -c 1 192.168.3.1 --> REPLY PING 192.168.3.1 (192.168.3.1): 56 data bytes 64 bytes from 192.168.3.1: icmp_seq=0 ttl=64 time=0.398 ms --- 192.168.3.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.398/0.398/0.398/0.000 ms tcpdump of the above echo requests. Only the reply is tagged: [root@thor ~]# tcpdump -nni fe-0/0 -e tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on fe-0/0, link-type EN10MB (Ethernet), capture size 96 bytes 23:10:28.667909 00:02:b3:9f:ef:86 > 00:02:a5:8f:56:69, ethertype IPv4 (0x0800), length 98: 192.168.3.2 > 192.168.3.1: ICMP echo request, id 17620, seq 0, length 64 23:10:44.196339 00:02:b3:9f:ef:86 > 00:02:a5:8f:56:69, ethertype IPv4 (0x0800), length 98: 192.168.3.2 > 192.168.3.1: ICMP echo request, id 24788, seq 0, length 64 23:10:44.196616 00:02:a5:8f:56:69 > 00:02:b3:9f:ef:86, ethertype 802.1Q (0x8100), length 102: vlan 10, p 0, ethertype IPv4, 192.168.3.1 > 192.168.3.2: ICMP echo reply, id 24788, seq 0, length 64 The tcpdump clearly shows that for the first two packets (echo requests), the ethertype is 0x0800 and it doesn't contain the vlan tag. Now, if I disable the vlanhwtag on the physical interface, all gets back to normal. The physical interface is a supported 82550 chip. [root@thor ~]# grep fe-0/0 /etc/rc.conf ifconfig_fxp0_name="fe-0/0" [root@thor ~]# pciconf -lv fxp0@pci0:1:1:0: class=0x020000 card=0x10408086 chip=0x12298086 rev=0x0c hdr=0x00 vendor = 'Intel Corporation' device = '82550/1/7/8/9 EtherExpress PRO/100(B) Ethernet Adapter' class = network subclass = ethernet Am I really off topic ? P.S.: I also attached a capture with one echo request and an echo reply. The req leaving the FreeBSD box in question is not encapsulated, but the reply is coming in (with the vlan tag). P.S.S.: At the other end, there is a pFsense 2.0-RC1 (FreeBSD 8.1) firewall with vlans configured on an fxp0 interface also. Thanks, Andrei. On 03/01/2011 07:19 PM, yongari@FreeBSD.org wrote: > Synopsis: Vlan hwtagging on fxp under 7.4-PRERELEASE doesn't work > > State-Changed-From-To: open->feedback > State-Changed-By: yongari > State-Changed-When: Tue Mar 1 18:16:26 UTC 2011 > State-Changed-Why: > I'm pretty sure TSO and VLAN hardware tagging worked without > problems when I firstly implemented that hardware features. AFAIK > FreeBSD is the only OS that takes advantage of these features and > Intel's public data sheet does not (intentionally) mention VLAN > hardware tag insertion/strip feature of controller. The TSO and > VLAN hardware tagging is supported on i82550 and i82551 > controllers. > > From your description of the issue and tcpdump output I don't see > any problems. For instance, I see ping for 192.168.3.1 worked and I > also see VLAN encapsulation(ether type 0x8100) header in the > tcpdump. If VLAN hardware tagging does not work, you wouldn't get > any response from 192.168.30.1. So what is your problem? > > > Responsible-Changed-From-To: freebsd-bugs->yongari > Responsible-Changed-By: yongari > Responsible-Changed-When: Tue Mar 1 18:16:26 UTC 2011 > Responsible-Changed-Why: > Grab. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=155134 --------------030207010802060800010306--