From nobody Wed Nov 27 13:39:20 2024 X-Original-To: pf@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 4Xz0sj3MBjz5fD1s for ; Wed, 27 Nov 2024 13:39:21 +0000 (UTC) (envelope-from bugzilla-noreply@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 4Xz0sj28cMz4PnG for ; Wed, 27 Nov 2024 13:39:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732714761; 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: in-reply-to:in-reply-to:references:references; bh=7rZnZMiGXPp/HASlv3yq6iHrW6qUR2qG8LjAMQOuyUg=; b=KBpPhkAzc+tm2dp6QcgCJx8Li+nZQcCfhn75stsgp4RFLB6tXV+fhJ6r2ksYScri0EQRnN 5BhYcXXKTxqbPgjD0mrnoEkyugY+9wLfH7/1Ec8QqA8s3oj2w4PgZ9fnlFDgn46IPLmZtI Tc6JCj/253tG/axuOXXA2WLg3p8UWPuIioyi/OHcY1MEgLDyOMgaFVr9Tyage4gAKeS+7J BTrmkslmvoIS3JydLsCVATGHC/b58hWEfa702hCLaCm9KW4Ata3JM8K3ShhmlZaPFX4lRP m5xNeSAWcWYJ9u0MiDtaiFFfOUHDxIbu6lzQi78zQR2nRSEbZvRePHKWp34Qwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732714761; a=rsa-sha256; cv=none; b=MCWHZAwusA4vj6EgJjVoQwoApEuqd/2Ab+3Sbk2CPEsuz31gr9G4UEYUbzqr1LpU4mdvMC leHZbW2wf7S6n5TDBYkppSlIWt1M7E54jWF9r+Miqy9UmxBORK8XjP+TplNlV1Vl926wFM zEr7hnaE79vbV1moR+H7HPft7/1erUTsF7bLElsM/pxF9qZ+/Z/+pRKoPe9vCOhfsEfCrL 4JLo5GBkRjAj4tyhe6b2b1+Id3XRKD7hCAUSwuG5U9N1AhPmacAjlmEVZi3QmKJf6Zptce 2Dkhqa+lRY7BPug1p6XNiPQU4Gij0dhF0Cz1IUsUKtjPhohI2cNXKaSrB1wEBg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4Xz0sj1mSMz1BcX for ; Wed, 27 Nov 2024 13:39:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4ARDdLkT072319 for ; Wed, 27 Nov 2024 13:39:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ARDdLv1072318 for pf@FreeBSD.org; Wed, 27 Nov 2024 13:39:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pf@FreeBSD.org Subject: [Bug 282984] [PATCH] pfctl: add -T `makezero` to touch pfras_tzero _only_ for non-zero entries Date: Wed, 27 Nov 2024 13:39:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kp@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282984 --- Comment #7 from Kristof Provost --- (In reply to Leonid Evdokimov from comment #6) I don't have any particularly strong opinions here. I'm unlikely to use eit= her option myself. I will point out that even moving this operation entirely into the kernel doesn't make it race-free, because counters use counter_u64, which uses per-core counters, so there's never an atomic view of the actual counter va= lue. It's inherently an approximate snapshot. So it's probably better to use the existing 'zero 1.2.3.4 5.6.7.8 ..' optio= n. --=20 You are receiving this mail because: You are the assignee for the bug.=