From nobody Sun Nov 28 06:56:07 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 9F7E618B7706 for ; Sun, 28 Nov 2021 06:56:07 +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 4J1zlq2gktz3ksK for ; Sun, 28 Nov 2021 06:56:07 +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 3D0F1272F for ; Sun, 28 Nov 2021 06:56:07 +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 1AS6u7d9094104 for ; Sun, 28 Nov 2021 06:56:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AS6u7ql094103 for bugs@FreeBSD.org; Sun, 28 Nov 2021 06:56:07 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: Sun, 28 Nov 2021 06:56:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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=1638082567; 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: in-reply-to:in-reply-to:references:references; bh=yHMBr/t0AIy9lb0nZN7MlOjs0rrb7vVsDIXx+smSNBE=; b=TPRYmS+82arl1aF56Dp92lU98iMrByZf5GQxch4yrSDo4NG0aJlFoRvXZhiXn4ATNxiAVh MG4eAaSDogkVf4QK2fM5VexQ7j9mizlHmFrAEGV5/d9RtBDKluL+21drYhIbWiMwxE8V0r jvKxyjUSFG0BYpXITw+UORFIL83Mz6cTZ5bYMOMeC1/rd9hMWC3p3Z8q4T3kHeLYAuw0TU kaJyyB4Uu3+dQk5P6vlHw7bkcFQnNM4l4gAQxds29GncLKRqTDkwzB9xefxaqEp4p9fiwq 1K57CCze9itBRhQdepcTvzJDIN3uC0XTZuabszH2FafdUcDpUp6CmtE3GYqdAQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638082567; a=rsa-sha256; cv=none; b=snD2uOu9/YrD7NHeQdtxsA2lT4LeXp5+6+7u/9smXjvJjZlbB7tTDwy/oxvkTmFxLNHk0E zKOZEU5HFpQXMjWmUc0guvi7lPHb9BkWdgqYtfL0lWfpJQmUQvh2/Da6WqUbI38/FpbchW rM6n7KraNZqNHorYHe0PAQvmOB6ub/Tcci6/uBbmrKWqoMHVP/MQ8zH5TLnweIZWw2sI4H /yj1nw7xKorJ7wf/8N+Nb0+dAESK1cFSE1O+OeRIxihPBvgMQEOx5hQQ4ch0E6Hy9BjS1j mlEQkZAYR1bJ4z751T6bzD15bBFUtJd1PvCGMeocOKhLC9qvY3H3WsfEWCwkWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260068 --- Comment #2 from Ozkan KIRIK --- on HostB, still vlan headers are lost for incoming packets even with no if_vlans created. But i hit a strange issue to test this. To receive packages without creating em1.110 interface, I removed the vlanhwfilter flag as: - ifconfig em1 -vlanhwfilter tcpdump can receive tagged frames without netmap app. After starting the ne= tmap bridge, tcpdump couldnt receive tagged frames. I checked the ifconfig em1 f= lags for if the promisc exists and vlanhwfilter not exists. Flags are good: prom= isc enabled, and vlanhwfilter not enabled. After running the commands below whi= le netmap bridge is running: - ifconfig em1.110 create; ifconfig em1.110 destroy tcpdump could recevie packages but, vlan tags stripped.=20 It's possible to reproduce this issue using jails with single host. Create a virtual host which has at least 3 e1000 interfaces. - em0 for managing host - em1 and em2 should be connected same network use this commands to reproduce: Open two ssh terminal. First terminal: * 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 -vlanhwfilter up * ./bridge -i netmap:em1 -i netmap:em1^ 2>/dev/null & * tcpdump -eni em1 Second terminal: * jail -c -n host2 persist vnet vnet.interface=3Dem2 * jexec host2 ifconfig em2 up * jexec host2 ifconfig em2.110 create 10.10.10.2/24 up * jexec host2 ping 10.10.10.1 --=20 You are receiving this mail because: You are the assignee for the bug.=