From nobody Mon Aug 11 19:27:25 2025 X-Original-To: dev-commits-src-main@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 4c14Qj44xVz64nsr; Mon, 11 Aug 2025 19:27:25 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c14Qj3Ww4z3bB5; Mon, 11 Aug 2025 19:27:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754940445; 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=khOEg0soX/rcvafep/44OgGSWj84kOxozImyP4UXuqM=; b=q0z+VU6iBTHVxhd8UYdpbJ/5NAmUjsM3pteS8hwwqaHLV8IXaH1mFKr7+oXSNls2FzJpGV Yg7c4tUUiRTeAwby6yKsNWfq/qUMMY4//x8+1uzMUbl/jqoJi7zO0kPadYf4HkQmendETb OD9wh+MUnyNEV3zgbW5SjNouaAqtSoE3RQp1xYTPMTHf0iu8BgqemnCZxKewGyF3nSKGXI 59QVfpnnPb1Hv6beJiDER3giYzWMSreIV6ELx/q7ayqXyFswFYPVGKLKj9b1CsqFueO5RR BecHpfNVx66Ao7N+iyJFblBk3XvGspMrluR0ucLuBlOgPm885qTF3l1Ediseyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754940445; 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=khOEg0soX/rcvafep/44OgGSWj84kOxozImyP4UXuqM=; b=UraTorV4s5SU2PuUtkCMXI6hf7dS6KDk1wbVlWxpVFRYfyn89Z51JV/4WH+Ioddg9RCL0d PoqXvGb5iUDaBZzEFSx+jgzjlwLoPOCiE3GSYiXdfPht5xqHaOFprDA19KjlRoCWmSdl0O qb5+BaekY4YVvKTbCfTNL/y78cG4LsMA615FXi20aMMpYL+PLWX+D32R0xu7HStE9/rWK9 T6v7HWFl+yQuENR+r3rZ0XWizBbpD2i465YomM+ezmq61HMctzAuUgTIILtjpyRDfgD8oo yp6w+NmNWjAG/KrD7BqmB0hPxqOWTHv98FtUwyrJbU+uca9IMt8f1o3eOQFGXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754940445; a=rsa-sha256; cv=none; b=b5f9y4DcspkjoitqoHIdy+nz/Cr6/kdjcmL/I0KWITu6mm4XDMgVOsfTXXNu7v4wTK0LcV avhNM0dvjYpUn5bVStlzrrtB+sG9dj3enRZXIXoTW3txZcUpmm6hixP5/CBf7rLyT6NFvp gnJO7ChoojAcp1aEUC7HQaYCnUgtdSimkbWZ564OxiE5S7SdO44POBhA3fDqeJXzzB3REt agNpMyMBRNzYNQosWKtBfit8uBjXx+4AhEX0ZEVwL8C7oTtTW1r3kPFurdLlBnyRXqspdv 9Siw78DLd30FBigbJYwFYspz+HIin+yI+8ipZxZFjMSht2YkY2g4An4q36b3JA== 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 4c14Qj2JvDz15DS; Mon, 11 Aug 2025 19:27:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 57BJRPOj013801; Mon, 11 Aug 2025 19:27:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 57BJRPCo013798; Mon, 11 Aug 2025 19:27:25 GMT (envelope-from git) Date: Mon, 11 Aug 2025 19:27:25 GMT Message-Id: <202508111927.57BJRPCo013798@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: f5219cabcf47 - main - pf: free anchor and ethernet anchor zones on vnet shutdown List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f5219cabcf47a1100b6214485c6655d717e89431 Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=f5219cabcf47a1100b6214485c6655d717e89431 commit f5219cabcf47a1100b6214485c6655d717e89431 Author: Kristof Provost AuthorDate: 2025-08-08 15:15:19 +0000 Commit: Kristof Provost CommitDate: 2025-08-11 19:27:09 +0000 pf: free anchor and ethernet anchor zones on vnet shutdown Fixes: 029532e77b92 pf: also allocate ethernet anchors from a UMA zone Fixes: 31131a9d6a20 pf: allocate pf_kanchor from a pool Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netpfil/pf/pf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index 3fa7789efcfe..9d83e7b82e6f 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -1347,6 +1347,8 @@ pf_cleanup(void) uma_zdestroy(V_pf_state_z); uma_zdestroy(V_pf_state_key_z); uma_zdestroy(V_pf_udp_mapping_z); + uma_zdestroy(V_pf_anchor_z); + uma_zdestroy(V_pf_eth_anchor_z); } static int