From owner-freebsd-pf@freebsd.org Tue Aug 14 23:54:52 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 650A2106A408 for ; Tue, 14 Aug 2018 23:54:52 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (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 E6BF38E91D for ; Tue, 14 Aug 2018 23:54:51 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Received: by mail-ed1-x544.google.com with SMTP id k15-v6so11037774edr.3 for ; Tue, 14 Aug 2018 16:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxpowered-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version; bh=4QAvYZyLN3WWnDTYtltlcNL9YIbKjIH4/fg6hMAiX7s=; b=lsjZJkbPwGHceBVUQifGiEI8JMaiuGKd6DmUHUyWSmcjSrWrPh7Kb8sf1jNu2mW3ih niBkZjA4WcqJXAtsyPbGEO7LUWzsc5K00MBSxL+4sqkNeDKqtYMmNtOVEQCHaqJ3vwd2 PJCiqdUAzFbivxY5Nxy43qOlxwKEItfn4Egv5kICGcxw0BXmwLY+S2WGCzg6jEFLSLaP +anOOdS4z3frhDvn11FdLhnsDPV7PLYhBF+cgHV1hqC9t4hp7od+gDJOCarKbJkD9OHN 2YVQh4q9ZZuXmxB9FtRYgM1470u+9jyZGcEuv3tM5hPMAndM8eCg3KMsYYZDsX79lIHd R5/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version; bh=4QAvYZyLN3WWnDTYtltlcNL9YIbKjIH4/fg6hMAiX7s=; b=qJTtr3C1EdkkggbKzCf84Wv5vXY49tnmbm7lk3ovEIOCcvV/c/Sj+PWPt4viYTSNbs 9hGMt5J/PmFv3upYCzYIn0uPO++vb2/XKhLAdmzWUTJgM0uSeQTK/UIQqxmUbY623RuU N2nbJ+y1jUwbuWHemQXW1kBZ35px0rXflx/JyuPMwFUD5XCKp4SPXNr8QdK6iSV9DFD4 XXGrgZZq1JE+22zqDvANVbhQMIpRybu7v8RuVDoetlT0QF2lXKarlHQG9lJrgX312dKI wWElCS7ygZPkoGBJgC2vib8yeTrgNLdgmRisG3VH6EY5mkU8T+2MSc8sCDp6ZR9Cv2Do 5kag== X-Gm-Message-State: AOUpUlGZ/bbA5+IW1f7AUWA8WOjMOt37Ci6cz1JxD+zz0kzZnid+W0vO VpuYWlN/VPh7f1q7aMrSnhhRqg== X-Google-Smtp-Source: AA+uWPxQVdxTBFbP/9aV532ydOAlfkmi7v5WQK3C4qgoKNM5wIPpZi2sGgl49prCdUkeoF57V7Vuaw== X-Received: by 2002:a50:9704:: with SMTP id c4-v6mr29485410edb.246.1534290890777; Tue, 14 Aug 2018 16:54:50 -0700 (PDT) Received: from energia.localnet ([2a02:8108:50bf:d514::5]) by smtp.gmail.com with ESMTPSA id b58-v6sm20187621ede.37.2018.08.14.16.54.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 16:54:49 -0700 (PDT) From: Kajetan Staszkiewicz To: Ermal =?ISO-8859-1?Q?Lu=E7i?= Cc: Kristof Provost , "freebsd-pf@freebsd.org" Subject: Re: pf tables locking Date: Wed, 15 Aug 2018 01:54:43 +0200 Message-ID: <6021147.AAtAggGk6h@energia> Organization: tuxpowered.net User-Agent: KMail/5.2.3 (Linux/4.16.0-16.2-liquorix-amd64; KDE/5.28.0; x86_64; ; ) In-Reply-To: References: <8680316.SccKl5VnxN@energia> <13826523.m2ultlLLsi@energia> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2036494.pfWuGqApS5"; 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: Tue, 14 Aug 2018 23:54:52 -0000 --nextPart2036494.pfWuGqApS5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" On Tuesday, 14 August 2018 15:44:52 CEST Ermal Lu=E7i wrote: > If you really want to spend time on it, the best option is to pull out the > pool concept used by the rules/nat... and manage it outside of the > rules/states but in its own module referenced by the former ones. Do you mean as separate kernel module? Or totally outside of kernel? I was= =20 considering doing this outside of kernel by providing a weighted round-robi= n=20 algorithm but that would still require most of the patches as for doing it= =20 within kernel, in order to get counters working for redirection tables and= =20 state counter per table element, which both are missing in kernel now. > This would allow extensibility and propper reasoning about it. It might be the late hour but I really don't see how it would be extensible= =2E=20 Please be more specific. =2D-=20 | pozdrawiam / greetings | powered by Debian, FreeBSD and CentOS | | Kajetan Staszkiewicz | jabber,email: vegeta()tuxpowered net | | Vegeta | www: http://vegeta.tuxpowered.net | `------------------------^---------------------------------------' --nextPart2036494.pfWuGqApS5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSOEQZObv2B8mf0JbnjtFCvbXs6FAUCW3NrwwAKCRDjtFCvbXs6 FE1dAJ979AM5qro0P+tx/f1WbBTnKJIXVQCgmaCW6/OG3hfWoxKzoIVEWHlZXgA= =3czq -----END PGP SIGNATURE----- --nextPart2036494.pfWuGqApS5--