From owner-p4-projects@FreeBSD.ORG Tue Mar 11 14:31:21 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D0A131065673; Tue, 11 Mar 2008 14:31:20 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DE9D1065671 for ; Tue, 11 Mar 2008 14:31:20 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 62BF28FC12 for ; Tue, 11 Mar 2008 14:31:20 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2BEVK8X037318 for ; Tue, 11 Mar 2008 14:31:20 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2BEVK64037316 for perforce@freebsd.org; Tue, 11 Mar 2008 14:31:20 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 11 Mar 2008 14:31:20 GMT Message-Id: <200803111431.m2BEVK64037316@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 137397 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2008 14:31:21 -0000 http://perforce.freebsd.org/chv.cgi?CH=137397 Change 137397 by rwatson@rwatson_cinnamon on 2008/03/11 14:30:41 A bit more detail on the shared memory model and a pointer to bpf(4). Affected files ... .. //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#29 edit Differences ... ==== //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#29 (text+ko) ==== @@ -60,7 +60,11 @@ * are mapped into the kernel address space using sf_bufs and used directly * by BPF. Memory is wired since page faults cannot be tolerated in the * contexts where the buffers are copied to (locks held, interrupt context, - * etc). + * etc). Access to shared memory buffers is synchronized using a header on + * each buffer, allowing the number of system calls to go to zero as BPF + * reaches saturation (buffers filled as fast as they can be drained by the + * user process). Full details of the protocol for communicating between the + * user process and BPF may be found in bpf(4). */ /*