From owner-freebsd-net@FreeBSD.ORG Mon Sep 20 19:57:41 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E5CE16A4CE; Mon, 20 Sep 2004 19:57:41 +0000 (GMT) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id D603C43D41; Mon, 20 Sep 2004 19:57:39 +0000 (GMT) (envelope-from pete@he.iki.fi) Received: from [193.64.42.134] (h86.vuokselantie10.fi [193.64.42.134]) by silver.he.iki.fi (8.12.10/8.11.4) with ESMTP id i8KJvbm1007926; Mon, 20 Sep 2004 22:57:37 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <414F3636.1040807@he.iki.fi> Date: Mon, 20 Sep 2004 22:57:42 +0300 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andre Oppermann References: <20040905121111.GA78276@cell.sick.ru> <4140834C.3000306@freebsd.org> <20040909171018.GA11540@cell.sick.ru> <4140A8F5.92E4A2DF@freebsd.org> In-Reply-To: <4140A8F5.92E4A2DF@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Gleb Smirnoff cc: net@freebsd.org Subject: pfil question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 19:57:41 -0000 Andre Oppermann wrote: >BTW: You may be better off using pfil_hooks instead of netgraph for your >tool. You'll save one m_copym and m_freem for each packet. > > > Is pfil zero copy or one copy by default? If the driver supports it, does a packet get directly DMA'd in mbufs and passed over the pf which then drops the packet if applicable? Also, did the locking work for network stack in 5.3 make pf fully parallel so packets arriving can be processed by multiple CPU's? Do these need to be coming in from multiple interfaces or can even packets from one interface be distributed among multiple CPU's? Pete