From owner-freebsd-pf@freebsd.org Sun Aug 12 22:09:39 2018 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B80C105523A for ; Sun, 12 Aug 2018 22:09:39 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0101C7C3CD for ; Sun, 12 Aug 2018 22:09:38 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Received: by mail-ed1-x52a.google.com with SMTP id b10-v6so7315617eds.4 for ; Sun, 12 Aug 2018 15:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxpowered-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:organization:user-agent :mime-version; bh=/rSAE7deDWS3SWSS2S+V5Kz22XGomSmlXS3XQstvyJM=; b=FwTlODk9t2yIIq/GQ+7/AMO05hsWIPuI1JTWdrmZmwfyvhRPdToHR64ApQ5mGllT4u ake0Vba7GzJXcF6ppNZ7qnG5D+xFO9el+0pA1dt11jRasnNj+MtIb5Z6qdeCRdZk4Eim /7E4Mw1fwawcD7VvAoWKagZcN368rZJ3fUyZXuyVAHpax57NwH9w3aX92ZP5701JqzDX YYM68ChLgXQK4pPYosZh6x5HNxGFvoQoOvnh/kDy8722t3whYW0S8eVd95FTCt7YAydF rhD+oPypMMwQoA8xPhkMnRyhcFsGKPHkEErpcxcFfUhcoUAoAfk4rxdfi+G+/b4sI6r9 zLZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:mime-version; bh=/rSAE7deDWS3SWSS2S+V5Kz22XGomSmlXS3XQstvyJM=; b=j6P9R5hNNErFaePxUeV4esvEPc/ySiEkVUHmrVfYv+i+FR2SUjY7IHpTwS5aHSDi89 w2c3vDOmLlRxWDT85TJmbk/84lZR5S3phc6Kre5i9Is6VBIrc7pemGjD4Iqvtp3xqk9K OhVKB6tZWQn7asofC5dBrBELELs1xf4EiZS+B6hDsUxb44lJ1R4zDr2BzhaUkcfR1jOl a0RfqkaLAjDKLTiOYLrTzkU/MyGR6o4Ma90Ldmy6QbE9wy/acPuUoo7Ym4GxMV9bvJEa 6sV87HKKb1m0NfQ9lQ+TNabpbxk7gsNYQJ3FQ7ChMApq+NLwlCvzRyWOryZp3aEi0S6h QapQ== X-Gm-Message-State: AOUpUlGztBM4Muz4Is5W04Eu36vrFVEGQQ7IX3VwX4qhlrst4T9qUPNe wyrjspxZRZPpZacKI29DMg1j/IFSj7Q= X-Google-Smtp-Source: AA+uWPyvHVnGgklCsy7xoB9OiCWg4s3ynr78SOCWgxZBrfHC0UcxU5Uuj+8oSE8QgDIPVRZvM3izCw== X-Received: by 2002:a50:f390:: with SMTP id g16-v6mr19536908edm.226.1534111777246; Sun, 12 Aug 2018 15:09:37 -0700 (PDT) Received: from energia.localnet ([2a02:8108:50bf:d514::5]) by smtp.gmail.com with ESMTPSA id e2-v6sm6322880edn.11.2018.08.12.15.09.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Aug 2018 15:09:36 -0700 (PDT) From: Kajetan Staszkiewicz To: freebsd-pf@freebsd.org Subject: pf tables locking Date: Mon, 13 Aug 2018 00:09:32 +0200 Message-ID: <8680316.SccKl5VnxN@energia> Organization: tuxpowered.net User-Agent: KMail/5.2.3 (Linux/4.16.0-16.2-liquorix-amd64; KDE/5.28.0; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3483859.od8LnuUY3l"; micalg="pgp-sha1"; protocol="application/pgp-signature" X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2018 22:09:39 -0000 --nextPart3483859.od8LnuUY3l Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hello group, Can anybody help me iwth pf_table.c and all operations on tables, especially pfr_update_stats? I'm working on implementing stats for redirection targets, that is for nat or route-to. I'm going through the code and I've found out that many table-related function are guarded by lock on pf ruleset. But that is not true for pfr_update_stats. This function is called from pf_test only after PF_RULES_RUNLOCK(). -- | pozdrawiam / greetings | powered by Debian, FreeBSD and CentOS | | Kajetan Staszkiewicz | jabber,email: vegeta()tuxpowered net | | Vegeta | www: http://vegeta.tuxpowered.net | `------------------------^---------------------------------------' --nextPart3483859.od8LnuUY3l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSOEQZObv2B8mf0JbnjtFCvbXs6FAUCW3CwHAAKCRDjtFCvbXs6 FG4xAJ4kp++Es3MkSdq4CIYNtrHPQ94x9wCgvlwztRD0C8SydrcgzJt2SlxKgto= =AR0+ -----END PGP SIGNATURE----- --nextPart3483859.od8LnuUY3l--