From owner-freebsd-bugs@freebsd.org Fri May 22 08:56:01 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2F27932A7F4 for ; Fri, 22 May 2020 08:56:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49T0hK0XxDz41wn for ; Fri, 22 May 2020 08:56:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 10EBF32A65E; Fri, 22 May 2020 08:56:01 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 10AFD32AB13 for ; Fri, 22 May 2020 08:56:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49T0hJ6d2wz41rF for ; Fri, 22 May 2020 08:56:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C4D8F1BF57 for ; Fri, 22 May 2020 08:56:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 04M8u0re092641 for ; Fri, 22 May 2020 08:56:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 04M8u0xP092640 for bugs@FreeBSD.org; Fri, 22 May 2020 08:56:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 246654] Intel i350 with igb vf driver and wrong vlan tag Date: Fri, 22 May 2020 08:56:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tokade@cgnf.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 08:56:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246654 Bug ID: 246654 Summary: Intel i350 with igb vf driver and wrong vlan tag Product: Base System Version: 11.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: tokade@cgnf.net Hi all, my setup is a virtualized OPNsense Firewall 20.1.7 with FreeBSD 11.2-RELEASE-p20-HBSD. The host is Ubuntu 18.04.04 with Xen 4.9 and Intel i350 NIC with several gu= ests (OPNsense and ubuntu). I created SR-IOV virtual function, VF on physical interface enp5s0 and=20 tagged each VF with VLAN ID 20 on the host. The NIC supports transparent vlan which will automatically tag and untag pa= cket at the VF before leave or reach the guest. Currently, FreeBSD igb driver do= es not correctly handle the vlan tag. Packet inbound is not untagged as suppos= ed to be, it has a wrong vlan tag (1024). The other ubuntu guests do not have = this problem - traffic is untagged. I tried with additional VLAN tagging in the OPNSense VM, but then I get err= or message on the host, that tagging is not allowed in guest. Looking at the traffic in case no VLAN tagging in the VMs, which should be = the right way using VLANs with SR-IOV. All traffic coming in to OPNSense VM is tagged with 1024 as seen in the tcpdump. tcpdump ubuntu VM ping 192.168.20.1 PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 18:06:03.256121 00:16:3e:a0:18:f1 > 00:16:3e:a0:16:f1, ethertype IPv4 (0x08= 00), length 98: (tos 0x0, ttl 64, id 18868, offset 0, flags [DF], proto ICMP (1), length 84) 192.168.20.250 > 192.168.20.1: ICMP echo request, id 767, seq 1, length= 64 tcpdump opnsense VM 18:10:09.974113 00:16:3e:a0:18:f1 > 00:16:3e:a0:16:f1, ethertype 802.1Q (0x8100), length 102: vlan 1024, p 0, DEI, ethertype IPv4, (tos 0x0, ttl 64= , id 39437, offset 0, flags [DF], proto ICMP (1), length 84) 192.168.20.250 > 192.168.20.1: ICMP echo request, id 778, seq 1, length= 64 There is an old bug report with a similar behavior https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209581 Any chance this bug could be fixed? Kind regards Torsten --=20 You are receiving this mail because: You are the assignee for the bug.=