From nobody Sun May 01 16:47:44 2022 X-Original-To: dev-commits-src-all@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 36EEE1AB15FF; Sun, 1 May 2022 16:47:45 +0000 (UTC) (envelope-from git@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 4KrsbP13Npz4kf6; Sun, 1 May 2022 16:47:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651423665; 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=Hg/1uhMK3fBxzyUi94Af8pdkWF8YSWm3aM9xeYJSuis=; b=gBpqZCVWLYyWxb03r7TY5mh/QmmozdPkRH4N94Ha2Z2AMKhRD6hXF0h8W9pz0+KbLLi35d THrmbU3VGXRcL2/aNnb1hi40Nx+KhIGbInnKfZkOm39Dck84YCa1dJ533ClSIsTB+9gJ0j 5Ol3mIhv9SaM8CFiARfH2gnKNdUQ6+pvGmtCTsJsBvuPb0fEC8sueg4WZIORkspCSXoib3 3OxvRgGxdFg4GuNXPZYvXqaoxh1CLiHMh7SvsoHqafe71A6UwA8ETVRkO2D3+OrhgTJKmk MaD3wtwucC8kl9YF/FrjULRypIte56IYSMPUCFE6cG4GoAvNkIqkZKPs5rPdkw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 00E4319684; Sun, 1 May 2022 16:47:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 241Glipa006796; Sun, 1 May 2022 16:47:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 241Glibm006795; Sun, 1 May 2022 16:47:44 GMT (envelope-from git) Date: Sun, 1 May 2022 16:47:44 GMT Message-Id: <202205011647.241Glibm006795@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Eugene Grosbein Subject: git: 2e547442ab38 - main - ng_pppoe: introduce new sysctl net.graph.pppoe.lcp_pcp List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2e547442ab3822d3d7c46a68f152032ef5fe337c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651423665; 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=Hg/1uhMK3fBxzyUi94Af8pdkWF8YSWm3aM9xeYJSuis=; b=Wp/MyMS3jiQdvD2hUu4ZRl4U1JUiZZyPqXvtidxX4iuPrTU+AwL3hznItsg8YbPL5p9W9i wJ6I4nS6K5K+toZHpj9E2o5TEB9qJfCPjpu1v0wFnLHkZ4c46LoWDHaA14zYjVfRd9/ZDi XOvmkw5G74D/c0o/yMrdtTl6ueUNy43hk3G0s0fMmX7vFHiUEBXtn71vxPX1nGzWcHK7D6 esNoBHyKqkwbSlMmzU+92zXuvrO1iBVX8/9tX+ukBrId4q7R4e0AWz8CzLOkbI/EuJ9IMj SjEsyLZzcNtPj9g9rYPmWpww1XmesIiHfLYeSJIOuRu6vojMJe+GLBKWEy+6Cw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651423665; a=rsa-sha256; cv=none; b=l1oZhEvQX7UWvOVbOJk4EQggcFtsvvb0myWNkdVoKmfxhjMx6EiLUzNPTiMwKJR7+3/ePX xWVsclEVvpTmbk4IIHQ7c5SsNjjAUkEg99N2R5OnSO5KaegmT3M4+ysOgdDWP7b/H730G2 BClUqg79R4OZ66FKLuZBaRzq0A4TtE8dVdUXlial2StzY2KSjkpEFzY2xSlo7X1wwPCB6F 0gQtY7SbaZ1CBmYKyo99j78EqgcmhP/MtmMGXV/kCveVF91UfKX0t/u7vTgz+16T2aKgcI t+EThQOd0CFjiwv3MxwVSfPfnjIfqj8GQfoABParGJNKv7iANQszDCe7VqvoFw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=2e547442ab3822d3d7c46a68f152032ef5fe337c commit 2e547442ab3822d3d7c46a68f152032ef5fe337c Author: Eugene Grosbein AuthorDate: 2022-05-01 16:34:08 +0000 Commit: Eugene Grosbein CommitDate: 2022-05-01 16:34:08 +0000 ng_pppoe: introduce new sysctl net.graph.pppoe.lcp_pcp New sysctl allows to mark transmitted PPPoE LCP Control ethernet frames with needed 3-bit Priority Code Point (PCP) value. Confirming driver like if_vlan(4) uses the value to fill IEEE 802.1p class of service field. This is similar to Cisco IOS "control-packets vlan cos priority" command. It helps to avoid premature disconnection of user sessions due to control frame drops (LCP Echo etc.) if network infrastructure has a botteleck at a switch or the xdsl DSLAM. See also: https://sourceforge.net/p/mpd/discussion/44692/thread/c7abe70e3a/ Tested by: Klaus Fokuhl at SourceForge MFC after: 2 weeks --- share/man/man4/ng_pppoe.4 | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/share/man/man4/ng_pppoe.4 b/share/man/man4/ng_pppoe.4 index d4ca53e68714..d9853a746512 100644 --- a/share/man/man4/ng_pppoe.4 +++ b/share/man/man4/ng_pppoe.4 @@ -35,7 +35,7 @@ .\" $FreeBSD$ .\" $Whistle: ng_pppoe.8,v 1.1 1999/01/25 23:46:27 archie Exp $ .\" -.Dd February 14, 2018 +.Dd May 1, 2022 .Dt NG_PPPOE 4 .Os .Sh NAME @@ -320,6 +320,18 @@ This node shuts down upon receipt of a control message, when all session have been disconnected or when the .Dv ethernet hook is disconnected. +.Sh SYSCTL VARIABLES +The node can mark transmitted LCP Ethernet packets (protocol 0xc021) +with 3-bit Priority code point (PCP) referring to IEEE 802.1p +class of service with following +.Xr sysctl 8 +variable. +.Bl -tag -width indent +.It Va net.graph.pppoe.lcp_pcp: 0..7 (default: 0) +Set it to non-zero value to be used by parent network interface driver +like +.Xr vlan 4 +.El .Sh EXAMPLES The following code uses .Dv libnetgraph @@ -556,7 +568,8 @@ setup(char *ethername, char *service, char *sessname, .Xr ng_ppp 4 , .Xr ng_socket 4 , .Xr ngctl 8 , -.Xr ppp 8 +.Xr ppp 8 , +.Xr vlan 4 .Rs .%A L. Mamakos .%A K. Lidl