From nobody Mon Apr 10 05:07:59 2023 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 4PvxnC3wz3z44mwv; Mon, 10 Apr 2023 05:07:59 +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 4PvxnC27B7z3Ps1; Mon, 10 Apr 2023 05:07:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681103279; 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=bjC/vmjQFAxXSq5UAh5NUIGkOqn8QYW0mWDf6OsJYp4=; b=raC+oRvW/Z2KWfdikTt+z2/QUBhJK3RZGeMoDxmk1bQnXX55Jc2DsiOCU5xw3gyPWzNXaT fCft+ptCxkssKhmS8eWslHGqCWnyGOSV+xX7C9SF0hF1ht8qtejWVW+92X1BBJTozJfVy6 zHOmJi7sDM6XkiqvEbhHYU6ZdHEYL4y4/OKiaPo31AHPd/qMO7XNLof97M32Mpl7nLb7JZ Ag+A/KhYs5Wi0mhQ7A/LqBM6Hhe3b3wiOMR26xTacEoD4h81ixvgnD396Ir/f0hzcD9oF+ BiDOaV4xmJyslM2tLS2/kXdA9gMj2uTkHu67++IDx+ZpGQA3c7PVze2gGStLHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681103279; 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=bjC/vmjQFAxXSq5UAh5NUIGkOqn8QYW0mWDf6OsJYp4=; b=bFveibXeeHzqXiVfjWPZIFBrPTKJK7deaMRzoSNEs8oL+VyeXUzyGS+xckPKwpstKAsWPs z/McOCeiXXC4Pf3+hg+y6KPymJRZOQ5/fKDHRll6LdAwgK/wIWDlmaPUZLxbr7KvUvVYjW UGPecnWqWC83cJBYW2cyTifIA1oQs69S9EDCVti7AczveLLTkqxYzfSLNYf7UrUxFWa4cH XTi12mDaJ6atlanEqRnqC6e/H6e+bpyM7TR+TNbCmi358ay5dAxfnqENUZIA1yTROue1cg +KVaMm+oBahLOdU3N/vFDg2lKyEOmsIcJuDeroPe5aC5xVo+c3nJRC3DzY+f5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681103279; a=rsa-sha256; cv=none; b=IcoHsioQdxRPETenXfUPIonsi4dg203cLOgrKtqsGV5pmeHokxb8P6c27aCGO17PFJqPtV LfsGhIQJkdCpzPVaevzRxj4/g/O0fBDxoMGXMTUrBkWfS02emXudSJ3mix1AIoNImSPtyJ x2DuWuadTlCr5ll/Uyw6kWR3+DGXxWkijY22d5PHZORlc89nKvWvImt6s108AsH0YEI68X wccsGxh2O4KrOQATssIvhLlEXWz5RawepxhMjuOF4NAf2/pKyEVrkTYbCLK8IgMNVEcIrn n3avpqEUz2tI1sFLE15FWTgz3msnUL+iLRfw3nmh7Aq5u9vMLrmcPZ2s/Es3cA== 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 4PvxnC0l5Wzcpp; Mon, 10 Apr 2023 05:07:59 +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 33A57xdg022147; Mon, 10 Apr 2023 05:07:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33A57xdZ022146; Mon, 10 Apr 2023 05:07:59 GMT (envelope-from git) Date: Mon, 10 Apr 2023 05:07:59 GMT Message-Id: <202304100507.33A57xdZ022146@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: f3493c86529e - stable/12 - lagg(4): Make lagg_list and lagg_detach_cookie static 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: f3493c86529e71351776961127ad16a260f752de Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=f3493c86529e71351776961127ad16a260f752de commit f3493c86529e71351776961127ad16a260f752de Author: Zhenlei Huang AuthorDate: 2023-03-29 16:13:02 +0000 Commit: Zhenlei Huang CommitDate: 2023-04-10 05:06:21 +0000 lagg(4): Make lagg_list and lagg_detach_cookie static They are used internally only. No functional change intended. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39250 (cherry picked from commit fcac5719a1833ad865ac0a7960ff18319a40dfff) (cherry picked from commit b452382e5c00facd0fab8a8b0bd53d9564689e55) --- sys/net/if_lagg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 9e7a72d7cf0a..c4ea1e9e7637 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -105,7 +105,7 @@ static struct { {0, NULL} }; -VNET_DEFINE(SLIST_HEAD(__trhead, lagg_softc), lagg_list); /* list of laggs */ +VNET_DEFINE_STATIC(SLIST_HEAD(__trhead, lagg_softc), lagg_list); /* list of laggs */ #define V_lagg_list VNET(lagg_list) VNET_DEFINE_STATIC(struct mtx, lagg_list_mtx); #define V_lagg_list_mtx VNET(lagg_list_mtx) @@ -114,7 +114,7 @@ VNET_DEFINE_STATIC(struct mtx, lagg_list_mtx); #define LAGG_LIST_LOCK_DESTROY(x) mtx_destroy(&V_lagg_list_mtx) #define LAGG_LIST_LOCK(x) mtx_lock(&V_lagg_list_mtx) #define LAGG_LIST_UNLOCK(x) mtx_unlock(&V_lagg_list_mtx) -eventhandler_tag lagg_detach_cookie = NULL; +static eventhandler_tag lagg_detach_cookie = NULL; static int lagg_clone_create(struct if_clone *, int, caddr_t); static void lagg_clone_destroy(struct ifnet *);