From owner-freebsd-net@freebsd.org Sun Dec 11 14:55:04 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2CE0EC71E7A for ; Sun, 11 Dec 2016 14:55:04 +0000 (UTC) (envelope-from tom.beard@public-internet.co.uk) Received: from relay01.mail.pblin.net (relay01.mail.pblin.net [80.82.244.144]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7A04121A for ; Sun, 11 Dec 2016 14:55:02 +0000 (UTC) (envelope-from tom.beard@public-internet.co.uk) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=public-internet.co.uk; s=20150427; h=To:Date:Message-Id:Subject: Mime-Version:Content-Transfer-Encoding:Content-Type:From:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Sy5v7hYO3w6+VTwM8wo5ifXLcPEcKUpB4MEyqdxx7Gw=; b=ajKz1FGEepgJpSDBscW/ldKRC l+liAuUj7lO1stgHGzYv9vB4tkKNNVOwze8iXaTcP3LqOsDAkrmyPIxDUHZ+rqb/RPV5jbs6vDcN6 m4MtKnjbdCoMfepse5X4D8hqhGVVXuF9/0bG7ByofuAMpmnzMJHjviD62rqLdB3usB/e5DwOUAoCv Gi8nZ/W93Vi3fHcOGbX/IUfVSrCGWMaeXTzzsSPUatq6eerAUvQEVmh5KIdpnM02hveqS7dBROBNg oyFpxuSS2F7MYgIRh3vtPmtW9VxYyceGhtIz54IG8sta7SKIm6DUYsYK//zT+OqNpbfUZ3YHBycOK /AOf2ZETQ==; Received: from 33-254-82-80.in-addr.pblin.net ([80.82.254.33] helo=toms-macbook.lan) by relay01.mail.pblin.net with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cG5Md-0004PU-Jb for freebsd-net@freebsd.org; Sun, 11 Dec 2016 14:44:31 +0000 From: Tom Beard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3257\)) Subject: bce vlan stripping limitations Message-Id: <1C233AAF-E7F3-4FE9-8936-A36F827F4137@public-internet.co.uk> Date: Sun, 11 Dec 2016 14:44:30 +0000 To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.3257) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2016 14:55:04 -0000 Hi all I=E2=80=99m having issues with vlan handling on a bce interface on = 11.0-RELEASE. =46rom what I=E2=80=99ve read, the bce driver supports = hardware vlan stripping and is indeed doing this. My intent was to = create a vlan interface bound to the bce interface and bridge this to a = tap interface to use with a bhyve VM (as below). =20 Outbound traffic from the VM is correctly bridged from tap1 to vlan1 = then tagged with vlan 304 and passed out on bce0 Inbound traffic tagged with vlan 304 on bce0 never makes it to vlan0. =46rom what I can tell this is caused by vlan stripping on the bce0 = interface and it looks like I can=E2=80=99t disable it leaving me with = little option but to buy a new network card. Can anyone validate that I=E2=80=99m correct here and this is a known = limitation or am I barking up completely the wrong tree? Thanks Tom bce0: mem = 0xda000000-0xdbffffff irq 36 at device 0.0 on pci1 bce0: flags=3D8943 = metric 0 mtu 1500 options=3D80028 ether 84:2b:2b:0b:b3:72 nd6 options=3D29 media: Ethernet autoselect (1000baseT ) status: active bridge1: flags=3D8843 metric 0 = mtu 1500 ether 02:eb:af:cf:7c:01 nd6 options=3D1 groups: bridge=20 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap1 flags=3D143 ifmaxaddr 0 port 11 priority 128 path cost 2000000 member: vlan1 flags=3D143 ifmaxaddr 0 port 9 priority 128 path cost 55 vlan1: flags=3D8102 metric 0 mtu 1500 ether 00:00:00:00:00:00 nd6 options=3D29 vlan: 0 vlanpcp: 0 parent interface: groups: vlan=20 tap1: flags=3D8943 = metric 0 mtu 1500 options=3D80000 ether 00:bd:3a:17:4c:02 nd6 options=3D29 media: Ethernet autoselect status: active groups: tap=20 Opened by PID 12880