From owner-freebsd-pf@FreeBSD.ORG Mon Jan 23 11:16:40 2012 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 02AF41065695 for ; Mon, 23 Jan 2012 11:16:40 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id BAF508FC13 for ; Mon, 23 Jan 2012 11:16:39 +0000 (UTC) Received: by iagz16 with SMTP id z16so6905679iag.13 for ; Mon, 23 Jan 2012 03:16:39 -0800 (PST) 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; bh=348Ur48Z1LMiruQnBiRMT3Z21numhrHQFll4adbfS5k=; b=rT1AXXSAet29Vc4B9PHrg+kE6e5BNceJPakcO+E1QgP3DTNyvV5jV0xduaUMw8dXc1 F2Fj0fLObguVXLTOczjeJbI3Y/S5V8AQ4EiJIRNtPkzXWCMXhbV6zkulmX+BXnRC6MZN CGx0hVHu2f2vKuQdjT7yUfZez1+GJ5Y/IYTFA= MIME-Version: 1.0 Received: by 10.42.163.200 with SMTP id d8mr7570924icy.41.1327317398883; Mon, 23 Jan 2012 03:16:38 -0800 (PST) Sender: ermal.luci@gmail.com Received: by 10.231.134.198 with HTTP; Mon, 23 Jan 2012 03:16:38 -0800 (PST) In-Reply-To: <4F1BE7C8.4040601@FreeBSD.org> References: <4E4D073F-9979-4CB1-A421-DA5C1FC7A34F@FreeBSD.org> <20120121210118.0a1dc9d3@fabiankeil.de> <69ABD828-70EB-4599-A3A0-52707C7F3DE5@lists.zabbadoz.net> <4F1BE7C8.4040601@FreeBSD.org> Date: Mon, 23 Jan 2012 12:16:38 +0100 X-Google-Sender-Auth: 2MjMxLtugrG8sEUMI4YHTGZjTxE Message-ID: From: =?ISO-8859-1?Q?Ermal_Lu=E7i?= To: =?ISO-8859-1?Q?Tilman_Keskin=F6z?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: bug-followup@freebsd.org, freebsd-pf@freebsd.org Subject: Re: kern/163208: [pf] PF state key linking mismatch 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, 23 Jan 2012 11:16:40 -0000 On Sun, Jan 22, 2012 at 11:41 AM, Tilman Keskin=F6z wro= te: > * Bjoern A. Zeeb [Sat, 21 Jan 2012 21:01:41 +0000]: > > > > On 21. Jan 2012, at 20:52 , Tilman Keskin=F6z wrote: > > > >> > >> On Jan 21, 2012, at 21:01 , Fabian Keil wrote: > >> > >>> Tilman Keskin=F6z wrote: > >>> > >>>> Same here. > >>>> > >>>> Also Fabian Keil reported this in > >>>> > http://lists.freebsd.org/pipermail/freebsd-current/2011-July/025696.html > >>> > >>> This has been fixed in CURRENT shortly thereafter: > >>> http://lists.freebsd.org/pipermail/freebsd-pf/2011-July/006199.html > >>> > >>> Maybe the fix hasn't been MFC'd. > >> > >> Hm, r223765 happend before the RELENG_9 Branchpoint. > >> So maybe the Fix was not complete? > > > > See thread from earlier this month on freebsd-pf > > > > The Thread suggests: > > * Matt Lager [Thu, 12 Jan 2012 15:48:23 -0700]: > > So it looks likeI can comment out this code in > > /usr/src/sys/contrib/pf/net/pf.c: > > > > /* mismatch. must not happen. */ > > printf("pf: state key linking mismatch! dir=3D%s, " > > "if=3D%s, stored af=3D%u, a0: ", > > dir =3D=3D PF_OUT ? "OUT" : "IN", kif->pfik_name, a= ->af); > > > > When this error occurs, I guess for valid reasons, does PF drop packets > > or do something else with them, or is this purely an information notic= e? > > I can confirm that removing this printf, brings back the performance for > me. > > Probably a sysctl to disable this should be provided. There might be unexpected consequences from this and the better fix is to find the section where the mbuf is being reused. > Please fix :) > > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" > --=20 Ermal