From nobody Sun Sep 3 09:40:42 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 4RdmwW1NgPz4rGMC for ; Sun, 3 Sep 2023 09:40:43 +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 4RdmwV4dY5z4MDX for ; Sun, 3 Sep 2023 09:40:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693734042; a=rsa-sha256; cv=none; b=wV493TaNx4GnxSo2qBdzTMOoqlCPTaY6eyxnLnMh10YGxI1WoMIKVxJYF192IDT/nUWwwE jufxnJY6CdUSXuWgZ8WNlA9tuqaRLx2kJYwxdI5/VKqxf/zEA85gjQ4kXT1TP+YvjRa9yD BYbiafEIqmRkBHQQnR059UOOy5TL8oT/3mXuWz2uIykrwfl+j47TmlcSPUtONKRl/bOn18 z/GvEfn3H5cdMdjfHnlnq1UdwtFA3pfXXQs+oTAzdVyM3Fp1VWkwPbLThfIa38ymr4KAHM F54y+SUubZoyWPbotyZgDSv+rwq2KAYm04rEpVdCTqGhg3Pg/0IK8tAzAWMfwA== 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=1693734042; 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=d+LqMWPWqA6et5Gh0fPq8GHXph3nLo+gnxUJDOmBOQs=; b=AqUPsH6buSVoaeVPVoLA5rROKir318AwUXa/+RDnlzFcfggIeYtHoVHP9His1n5z2uTE+l 7TDxMj45oVhoMunQuiz37veQJ1X9THc05dezoFw2hkbWJ+/Ol14IymJhRl+bbxt5GMLMFv YIX1Ew3KDDIUiwGvF6+XOBe3gySQunEGAraiPeACoqLkmFrsPkAeGZKbs/1araM6oMZFhj taADAfL6K5k0QLeLGGI6EAZ1BTOLsFAjMMej+uQQ4L7MKajnvH/4hqKx9N+WS960opmXPh Z/R67un2CSHDoDkwYpNfBjucOkICoikTw6MFv9f2Gpyx1ppeL0MFttV52w062g== 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 4RdmwV3jfwz4k3 for ; Sun, 3 Sep 2023 09:40:42 +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 3839egBV080386 for ; Sun, 3 Sep 2023 09:40:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3839eg09080385 for bugs@FreeBSD.org; Sun, 3 Sep 2023 09:40:42 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 273539] VLAN issue after upgrading from stable/13 to main or stable/14 - kernel without COMPAT_FREEBSD12 Date: Sun, 03 Sep 2023 09:40:42 +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: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: herbert@gojira.at 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=3D273539 Bug ID: 273539 Summary: VLAN issue after upgrading from stable/13 to main or stable/14 - kernel without COMPAT_FREEBSD12 Product: Base System Version: 14.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: herbert@gojira.at After updating from stable/13 to (main and later to) stable/14 net/mpd5 only connects to my ISP (VDSL with VLAN) if I enable "options COMPAT_FREEBSD12" in my kernel. Without I get only: Aug 30 15:08:06 gw mpd[59876]: [L1] PPPoE connection timeout after 9 seconds Aug 30 15:08:06 gw mpd[59876]: [L1] Link: DOWN event Aug 30 15:08:06 gw mpd[59876]: [L1] LCP: Down event Aug 30 15:08:06 gw mpd[59876]: [L1] Link: reconnection attempt 1 in 7 secon= ds Aug 30 15:08:14 gw mpd[59876]: [L1] Link: reconnection attempt 1 Aug 30 15:08:14 gw mpd[59876]: [L1] PPPoE: Connecting to '' Aug 30 15:08:23 gw mpd[59876]: [L1] PPPoE connection timeout after 9 seconds Aug 30 15:08:23 gw mpd[59876]: [L1] Link: DOWN event Aug 30 15:08:23 gw mpd[59876]: [L1] LCP: Down event [..] Without "COMPAT_FREEBSD12" vlanproto =3D 0x0000. If I run "ifconfig vlan31 vlanproto 802.1q" mpd5 works. According to ifconfig(8) 802.1q is the default vlanproto. Maybe this commit is related: commit afbb64f1d85b7d8c2938031c3567946b5d10da4f Author: Alexander V. Chernikov Date: Sun Apr 11 17:47:03 2021 +0100 Fix vlan creation for the older ifconfig(8) binaries. Reported by: allanjude MFC after: immediately ? To reproduce: build and run the following kernel: include GENERIC ident TEST nooptions COMPAT_FREEBSD12 stable/13: # ifconfig vlan99 create =3D=3D> vlanproto: 0x0000 # ifconfig vlan99 vlan 99 vlandev igb0 =3D=3D> vlanproto: 802.1q # ifconfig vlan99 destroy # ifconfig vlan99 create vlan 99 vlandev igb0 =3D=3D> vlanproto: 802.1q On stable/14 or main: # ifconfig vlan99 create =3D=3D> vlanproto 0x0000 # ifconfig vlan99 vlan 99 vlandev igb0 =3D=3D> vlanproto 0x0000 # ifconfig vlan99 create vlan 99 vlandev igb0 =3D=3D> vlanproto: 802.1q I guess that's why the following lines in my /etc/rc.conf no longer work on stable/14 or main. cloned_interfaces=3D"vlan99" ifconfig_vlan99=3D"vlan 99 vlandev igb0" I have to replace the ifconfig line with: ifconfig_vlan99=3D"vlan 99 vlandev igb0 vlanproto 802.1q" It also works if I remove the following lines in sys/net/if_vlan.c: 1110 #ifdef COMPAT_FREEBSD12 1113 #endif 2265 #ifdef COMPAT_FREEBSD12 2268 #endif --=20 You are receiving this mail because: You are the assignee for the bug.=