From nobody Fri Nov 26 18:19:56 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9CC5E18BB4DA for ; Fri, 26 Nov 2021 18:19:57 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J131m5kTzz3Pxc for ; Fri, 26 Nov 2021 18:19:56 +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 6CB674F5F for ; Fri, 26 Nov 2021 18:19:56 +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 1AQIJu6S012212 for ; Fri, 26 Nov 2021 18:19:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AQIJuWi012211 for bugs@FreeBSD.org; Fri, 26 Nov 2021 18:19:56 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 260068] e1000 & igb in netmap mode removes VLAN headers Date: Fri, 26 Nov 2021 18:19:56 +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: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ozkan.kirik@gmail.com 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637950797; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bRxSz6WF2DqFYu3IsdckYwBy+DhpQ61pUZARqvpbf9w=; b=ZVoGFSNMIsv02Rqn3k2jhEqkGwrBdsVf7ygcVsGQ0MpgryrSB6P9bIGR4Z2EjBVDjYtLjt VNRlJJq/ljCcHjOp9fNMzgqEq7yFb6YalXBSblwPbg5COrYd75furKG3LTbMQDFkh21q9V Gn2YiHbJxYKUupNZUMSJQ/yHDkGYoMJP6qCwlD+mg9YBFD8PSrhucpdcQYkz+AJCcikK2q 8iWz6ewR47iBeXMpxLJL10nz2m7wgt8ZcUT5IkRm4UlhWMeqWMzO0foVnIPuotatJ7TH2F oGlWU2Q9nDQOxAyOl/beIFG6cObKTFkcGAmvkt61oqbodgt090seRfVPHTQ0+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637950797; a=rsa-sha256; cv=none; b=byQzAJvR0JPffbNEMxVC+2OuHs95fpr2MvbfTF8V4FzNqDaEfeyIlV3s3dYjdlYYio+Ppa Afxba9ie6L4xcIQiSBlFR6TMfD9cJXCtlRD0u+ixXge2GfPxtXwwFcg1FESsA7FWJZRfuk Kx2f01duqD1615pELBe/fUIGviACUuQ3BRxv9B+SaQQtHU/nnuBa5lgmIw9V1RSzh3L9gT KSDE7iKq76tytqwF7/QLg8wqnM8AlkW6fWI45ND88cIqEtXvmBxgK7B/s/AZQG9ML7C3Px 6/j4c0YctbNkfrI0HCFHdYD3WU4thcWtIOGABLnWNmEpkGt97KkK6YAE8Tty2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260068 Bug ID: 260068 Summary: e1000 & igb in netmap mode removes VLAN headers Product: Base System Version: 12.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: ozkan.kirik@gmail.com Hello, I'm using stable/12 (aba2dc46dfa5, Oct 24 2021). I'm hitting some problems with if_vlan + parent interface netmap. It was working before the https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258258 was fixed. Maybe something missing for netmap implementation. The way to reproduce: [HostA] <----> [HostB] HostA - ifconfig em1.110 create 10.10.10.2/24 up - ping 10.10.10.1 - tcpdump -eni em1 17:05:11.393411 00:50:56:26:69:ea > 00:0c:29:84:5d:88, ethertype 802.1Q (0x8100), length 102: vlan 110, p 0, ethertype IPv4, 10.10.10.1 > 10.10.10.2: ICMP echo reply, id 32844, seq 53, length 64 HostB - ifconfig em1.110 create 10.10.10.1/24 up - ifconfig em1 promisc -tso -lro -rxcsum -txcsum -tso6 -rxcsum -txcsum -tso6 -rxcsum6 -txcsum6 -vlanhwtag -vlanhwcsum -vlanhwtso - ./bridge -i em1 -i em1^ & # tcpdump -eni em1 17:05:11.391215 00:0c:29:84:5d:88 > 00:50:56:26:69:ea, ethertype IPv4 (0x0800), length 98: 10.10.10.2 > 10.10.10.1: ICMP echo request, id 32844, seq 53, length 64 Pinging from HostA to HostB through if_vlan. When netmap bridge is closed, everything is okey, we can see the original packet on tcpdump. But when netmap bridge is started, packet's vlan header was lost as you can see above. The netmap bridge app is the original tools/tools/netmap/bridge.c application. HostA and HostB connected back to back directly with a patch cable. There is no switch between them. I tried this test on real hardware em, igb and vmware e1000 (em) nics. Problem is easy to reproduce. But there is no such problem on ix and ixl cards. Is it possible to check and fix? Best Regards, =C3=96zkan KIRIK --=20 You are receiving this mail because: You are the assignee for the bug.=