From nobody Thu Mar 10 17:21:11 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 831FF19F18CC; Thu, 10 Mar 2022 17:21:11 +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 4KDwnz2ZgVz4THT; Thu, 10 Mar 2022 17:21:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646932871; 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=IsqAiWnWrsshK0ljDnAD3KTZOYdUcnClDfCvMvMBCWk=; b=Dh+zRfiS1fkw7X96rsDeSg9DCjHgUR3FhjKcOPillCSTKP8BD0kykWsst2yMWk6oPeggo2 7cwqwC1weZ9I9vphQdaIHgSeNd4/LlvgAWUmLODtn4ORT8AqgON7ITiirRImTi7aIoGoP6 b2NNtzjYn2S9/AfqhP6VazgflKNrMOD9XNFKu3WuWLIk1M8xajbchaVz7N4WFjcHtwxUQr K0ODrX5wvHa67S9Gpeujy1Jn7XDv2SxW4APBZbhV1FJi1Mz/G8o+GmHn2/Zo6wEs4/kat/ G1bdPZmcsGp6PRfA5I3XufWyTUnFw8kogC0RmIYa/GkflFeaulpeEv4F57cr9Q== 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 2B9D1EC2; Thu, 10 Mar 2022 17:21:11 +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 22AHLBBD011441; Thu, 10 Mar 2022 17:21:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22AHLBZV011440; Thu, 10 Mar 2022 17:21:11 GMT (envelope-from git) Date: Thu, 10 Mar 2022 17:21:11 GMT Message-Id: <202203101721.22AHLBZV011440@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: f11b6505f146 - main - pf: add PF_UNLNKDRULES_ASSERT 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f11b6505f14600d350dfa427f61abb8d1c7e1db4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646932871; 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=IsqAiWnWrsshK0ljDnAD3KTZOYdUcnClDfCvMvMBCWk=; b=x/mu4Yf2QeCA3fL5RM12pGVD3ocCwfS3I5UympBv+wZNg32Z4+Q7FfC1qR5dStyUjCp2cu 0cIzoSddVhXrDFSq7D9RccBd8Vxj8Vaf/59lT0DaFy3qhRrhCgCuP/4ZzbjCOn1NlPiLnZ 6YnzdXc6OqgGTpjXo6MSjqxHYIdbtwOVG9IXbdt9lnlqxu9eVgLwQDq4S+t0MbXwUU07rq VrKcJbt8v4I44vB8j0RhyZmp1+vPl0tUQLTqjhA6t71KXevHq8fCRy3KcUy31w19JT/P7k l9xIJc6fEul4l6XqIr7gvgTIwxJMC/+scR+PXUA8uEheurA2hQ35XSDhq3YeCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646932871; a=rsa-sha256; cv=none; b=RYVSnP5H1mp98ns7sX3XT8HPQeCq7o81Rf65IBuR2sZaKtoMtRhVa35WbKuoehouupwnnc Frkm22Mg2KG/CPhnHcq3fm1mITA43XJ6oqc1pERM/90LP8lqr6dceIBdy35cufugoyDCKP KiEXrN8QYDGFsmzuAjXwlLTOWeGdJ6g7fKwl9EqMHEK9ZvGiY2TnXHbrXkSOOGQPUbvupU n7lBiNZaZK8jg2tpNWBAcVD/ZNHhVE7fI6C0U5j0GztT+o4dgUBvxEznkjDpDND3ALGH4+ brg4BSpGOeTl87a0r0hhJph0twfdBh5D+M+QJkpXdxZ1Y1/kuqN15jXDdTVUSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=f11b6505f14600d350dfa427f61abb8d1c7e1db4 commit f11b6505f14600d350dfa427f61abb8d1c7e1db4 Author: Mateusz Guzik AuthorDate: 2022-02-28 10:37:30 +0000 Commit: Mateusz Guzik CommitDate: 2022-03-10 17:20:41 +0000 pf: add PF_UNLNKDRULES_ASSERT Reviewed by: kp Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/net/pfvar.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 252b3adbe958..57acab788b20 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -355,6 +355,7 @@ struct pfi_dynaddr { extern struct mtx_padalign pf_unlnkdrules_mtx; #define PF_UNLNKDRULES_LOCK() mtx_lock(&pf_unlnkdrules_mtx) #define PF_UNLNKDRULES_UNLOCK() mtx_unlock(&pf_unlnkdrules_mtx) +#define PF_UNLNKDRULES_ASSERT() mtx_assert(&pf_unlnkdrules_mtx, MA_OWNED) extern struct rmlock pf_rules_lock; #define PF_RULES_RLOCK_TRACKER struct rm_priotracker _pf_rules_tracker