From nobody Wed Aug 30 02:07:16 2023 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 4Rb7390qC8z4rVmF for ; Wed, 30 Aug 2023 02:07:17 +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 4Rb7385GFqz3g7C for ; Wed, 30 Aug 2023 02:07:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693361236; a=rsa-sha256; cv=none; b=daNt9eqZNIPOTcXiTeBQkMWJBNgmWogLBzSRHRjv8wZP1eN0fOBGZtbii19zon6oWSzF40 WjE8EhFNxuJq9aqVeo2cWPfoDX1d+FtmekWeuwDrj0mjW96Gug0EoGvRQ7g9DjLvQqdsO9 /8qtFAhwCeb5HwS5hraiPeiuYrgJMe9iUM+/y8gKJF3omHDjQYuZpk1ai4i6G4CXgWSPgf peUUHx64TIXB6Fi53vn5jdbFchNvBvHNNkjDSi5mbocc6whjB/BeL9SNhd3tYnWcHt6DJC IJwYJZeOQmI6biU9C5O1AsuEENMNujpjXH1u3BHUdxDIvpDGf6X52r0Ix1hsHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693361236; 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=g2ANnYzviSsRKhAn2umbW1hEO9LHJ4RXGF9VWHhUCHI=; b=c8mBG2J76TRo6tCRnp5OgnRksG5fiS3+vp1u6z5vufTG+bdNfdtWe5I2vB/SDAsnXFKKzg EuNtLLz7BFi/vjmwyLVdTEBW1xHDXYU0FonoXvR6wcfOxg3oABn9FN03R8lNQ/NFzjVpQj U423YVZbH/o4/0j65h/VBnKwi2Zw2RM+zEr4wJH96LOvmRPk5aUS0c8EoRIPUkJakoceXc wUeJ6+R1GN3IACy2w2Ga+KtpO0XovEsFwWSxDC9u2Ibt/4gM1AP95NPTn30OeCf/v6YRjF KmEjsZ7g1zsz08DD2No2Lu5qFmxXYaeFuF4uwb7+ORLV7B7vkUKyZlVWgN6a9w== 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 4Rb738440Wz1FZ for ; Wed, 30 Aug 2023 02:07:16 +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 37U27Ght088569 for ; Wed, 30 Aug 2023 02:07:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37U27Gn0088568 for bugs@FreeBSD.org; Wed, 30 Aug 2023 02:07:16 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 273431] No PCP (priority code point) on outbound traffic via em(4) when PCP and hardware VLAN tag insertion is disabled Date: Wed, 30 Aug 2023 02:07:16 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zlei@FreeBSD.org 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273431 Bug ID: 273431 Summary: No PCP (priority code point) on outbound traffic via em(4) when PCP and hardware VLAN tag insertion is disabled Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: zlei@FreeBSD.org This is a crafted bug from WIP fix https://reviews.freebsd.org/D39536. A setup: em0 <---> igc0 Steps to repeat: Capture on igc0 ``` # ifconfig igc0 up # tcpdump -nevi igc0 ``` Disable PCP and hardware VLAN tag insertion, then send packets with priority ``` # ifconfig em0 -vlanhwtag -pcp # ifconfig em0 inet 192.0.2.1/24 # arp -s 192.0.2.2 0:1:2:3:4:5 # ping -c1 -C3 192.0.2.2 ``` Packets captured on igc0: ``` 09:53:57.397415 00:0c:29:73:4f:98 > 00:01:02:03:04:05, ethertype IPv4 (0x08= 00), length 98: (tos 0x0, ttl 64, id 19249, offset 0, flags [none], proto ICMP (= 1), length 84) 192.0.2.1 > 192.0.2.2: ICMP echo request, id 5382, seq 0, length 64 ``` When either hardware VLAN tag insertion is enabled, or enable default PCP on interface ``` # ifconfig em0 vlanhwtag ### or # ifconfig em0 pcp 0 ``` then the outbound packets looks good: ``` 10:00:03.189436 00:0c:29:73:4f:98 > 00:01:02:03:04:05, ethertype 802.1Q (0x8100), length 102: vlan 0, p 3, ethertype IPv4, (tos 0x0, ttl 64, id 335= 32, offset 0, flags [none], proto ICMP (1), length 84) 192.0.2.1 > 192.0.2.2: ICMP echo request, id 6662, seq 0, length 64 10:02:17.070757 00:0c:29:73:4f:98 > 00:01:02:03:04:05, ethertype 802.1Q (0x8100), length 102: vlan 0, p 3, ethertype IPv4, (tos 0x0, ttl 64, id 192= 50, offset 0, flags [none], proto ICMP (1), length 84) 192.0.2.1 > 192.0.2.2: ICMP echo request, id 8198, seq 0, length 64 ``` Expected behavior: outbound traffic should always have priority when application requires. --=20 You are receiving this mail because: You are the assignee for the bug.=