From nobody Tue Feb 06 17:49:58 2024 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 4TTrP26MZ2z59gbV; Tue, 6 Feb 2024 17:49:58 +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 4TTrP24Kjcz44jQ; Tue, 6 Feb 2024 17:49:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707241798; 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=2LaFpg6IRuI7DJNnCFD8ESJw5UFDepy66L/tAE29O8g=; b=xVHiThLct/i8kHiAyJfQTUA0IMygZRQQo272lEi/CCcEgc+nMB4ALZ87lnOUIV1SVF86Qt h/NY3p1VqKTXwy0rJ0wKWuPv0uzbMO97EkZSgCcO/jE6pWbdKSr4c60EoqakzY+5YL9Zlh ZrBDHysujxthuTp/Tvpl7zTeZdqfxTy369WMwNhRZ491k/MosCJi7iSnv073x7YuqemAf4 QqZpyCguEGi1w18Qjqhbd7YUdHxOz//9kT8RFJJhmoj769TB/X6GOw76h1CYWZhW8/Hg2a +if4+h5AErr1roaqrJNjGyp8jwu7rKMqrJYgx9Yj774K0BO7e2sZ/3bbjKWkTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707241798; 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=2LaFpg6IRuI7DJNnCFD8ESJw5UFDepy66L/tAE29O8g=; b=fyKQO8ZB5nC0s1DKtfYaiorsEtWlplC/urFgUYXufc8ofF8VJViX+DUNHnsGMsTJzUv4lJ d1pkd5gI6edoI+JYo99FTe32BxwWNU1VolQF468Yy8BRN6p/9aLBK9L4vZoX03givPvTpx sxAJJm4Mdd5ecwCm9tjWmWqHFFrHWq4EMkktqh7ioCZEqCeGLF/rOKvctN+WsU3N16y3/d VnRKK+4YNNwZGDAOZ4yY6rQexZ4lVXVYqLS77OkKWOfbQ0i43RqUTr0yELHqBHSCUaVAob /ZGl3LsRjt4wPVgN2EMlvMD6o3G9wZMBBGS5ajCfe6bT9teBoeoTEGeGQTSdsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707241798; a=rsa-sha256; cv=none; b=qCiAUQysdV8CV8CzlQ530jytvKD2NX68/8ovC9oqw4lSNWFLQKCBFGESBrJVCsOVD6Er9F Ro0Zy3w5nXQyQQNq3no46l5TbvlDDI4BinUyhLmCdFwRxiAs8qHkbMJwUVwk8CVIUnFhGI DiHvTmETaYTlGk0F4vSh+sDiNKvCvgirc7YICh+Hkh1k18On7LXgJlRlsiEW5EF0n9SqvM t6tv61syzbBAaXYlliDFBUt6tK2F/ddoXvoTxkfnNL7uzDLErTg7FrppInL0SG3zok8ZNY S/rIU/zZzpNjChTa1G0NQ7hGDNwpj3Xmjlu4hTLgm+1CYdR6P7edlgESuEenIw== 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 4TTrP23PLgzYG1; Tue, 6 Feb 2024 17:49:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 416HnwaW001150; Tue, 6 Feb 2024 17:49:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 416Hnwp9001147; Tue, 6 Feb 2024 17:49:58 GMT (envelope-from git) Date: Tue, 6 Feb 2024 17:49:58 GMT Message-Id: <202402061749.416Hnwp9001147@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: 04c68025ea1d - main - pf: add a probe point to BOUND_IFACE 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: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 04c68025ea1dc35778db0ac1d195de9745678e28 Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=04c68025ea1dc35778db0ac1d195de9745678e28 commit 04c68025ea1dc35778db0ac1d195de9745678e28 Author: Kristof Provost AuthorDate: 2024-02-02 20:51:50 +0000 Commit: Kristof Provost CommitDate: 2024-02-06 17:47:07 +0000 pf: add a probe point to BOUND_IFACE It's been useful at least once, so we may as well keep it. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netpfil/pf/pf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index 12b72f50aa02..8bfda12b2b2e 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -126,6 +126,8 @@ SDT_PROBE_DEFINE4(pf, ip, test6, done, "int", "int", "struct pf_krule *", SDT_PROBE_DEFINE5(pf, ip, state, lookup, "struct pfi_kkif *", "struct pf_state_key_cmp *", "int", "struct pf_pdesc *", "struct pf_kstate *"); +SDT_PROBE_DEFINE2(pf, ip, , bound_iface, "struct pf_kstate *", + "struct pfi_kkif *"); SDT_PROBE_DEFINE4(pf, sctp, multihome, test, "struct pfi_kkif *", "struct pf_krule *", "struct mbuf *", "int"); @@ -415,6 +417,8 @@ VNET_DEFINE(struct pf_limit, pf_limits[PF_LIMIT_MAX]); static struct pfi_kkif * BOUND_IFACE(struct pf_kstate *st, struct pfi_kkif *k) { + SDT_PROBE2(pf, ip, , bound_iface, st, k); + /* Floating unless otherwise specified. */ if (! (st->rule.ptr->rule_flag & PFRULE_IFBOUND)) return (V_pfi_all);