From owner-freebsd-pf@FreeBSD.ORG Mon Oct 17 18:47:33 2011 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93D24106566B; Mon, 17 Oct 2011 18:47:33 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id C68D78FC1A; Mon, 17 Oct 2011 18:47:32 +0000 (UTC) Received: by wwn22 with SMTP id 22so3916771wwn.1 for ; Mon, 17 Oct 2011 11:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Vqbjst2usRRGYT+fJH2vTfZ9RzxffKz/VB9uiRz67f4=; b=HkUEJqzWi6PKFeaXXjqNFFVEjWNkPED1CzaKISUuUXCaFVivFMSQ9lRJNcG0BuOIdm M2R+INW9/1TPzZt1xEUecpL+nHRyN+iUqxrFnYxe/QeWJgHmfMgGdLsi4Y75BsJf87M1 J0KHfJcFsSisiDAzFb6Z0aVE/VeWxdYTZmQL0= MIME-Version: 1.0 Received: by 10.216.195.134 with SMTP id p6mr4223204wen.3.1318877251595; Mon, 17 Oct 2011 11:47:31 -0700 (PDT) Sender: ermal.luci@gmail.com Received: by 10.216.48.205 with HTTP; Mon, 17 Oct 2011 11:47:31 -0700 (PDT) In-Reply-To: <20111017131742.GC51949@glebius.int.ru> References: <201110151420.p9FEKulv026435@freefall.freebsd.org> <20111017131742.GC51949@glebius.int.ru> Date: Mon, 17 Oct 2011 20:47:31 +0200 X-Google-Sender-Auth: mzd_6rAC2S1lXVvSIaGGm19ZcNo Message-ID: From: =?ISO-8859-1?Q?Ermal_Lu=E7i?= To: Gleb Smirnoff Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: nerijus.ambrazas@ktu.lt, bug-followup@freebsd.org, freebsd-pf@freebsd.org Subject: Re: kern/114095: [carp] carp+pf delay with high state limit X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 17 Oct 2011 18:47:33 -0000 2011/10/17 Gleb Smirnoff : > On Mon, Oct 17, 2011 at 02:18:38PM +0200, Ermal Lu?i wrote: > E> On Sat, Oct 15, 2011 at 4:20 PM, =A0 wrote: > E> > Synopsis: [carp] carp+pf delay with high state limit > E> > > E> > State-Changed-From-To: open->closed > E> > State-Changed-By: glebius > E> > State-Changed-When: Sat Oct 15 14:20:00 UTC 2011 > E> > State-Changed-Why: > E> > Not a bug. This is a feature. pfsync(4) suppresses carp(4) > E> > preemption until new recently booted node downloads full > E> > table of pf(4) states from its peer. > E> > E> This is not true on FreeBSD. > E> The issue might be from other reasons. > > This is a surprise for me that this feature had been removed! > > It used to be in stable/6: > > http://fxr.watson.org/fxr/ident?v=3DFREEBSD60;i=3Dcarp_suppress_preempt > > And I always treated that variable in CARP as shared with pf. Why did > they removed this feature from pfsync? > OpenBSD has it but FreeBSD is SMP capable and global vars without synchronization do not work well. To support that you have to add cross-dependencies and synchronization between the two. Not only synchronization though even some housekeeping around.... I will probably give a look at this again after 9.0. > P.S. Since PR is about 6.2-RELEASE, then I have closed it correctly. > > -- > Totus tuus, Glebius. > --=20 Ermal