From owner-p4-projects@FreeBSD.ORG Sun Mar 9 19:58:46 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9DA071065674; Sun, 9 Mar 2008 19:58:46 +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 5CDE11065672 for ; Sun, 9 Mar 2008 19:58:46 +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 408F78FC12 for ; Sun, 9 Mar 2008 19:58:46 +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 m29JwkW1063480 for ; Sun, 9 Mar 2008 19:58:46 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 m29Jwkn2063478 for perforce@freebsd.org; Sun, 9 Mar 2008 19:58:46 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 9 Mar 2008 19:58:46 GMT Message-Id: <200803091958.m29Jwkn2063478@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 137253 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: Sun, 09 Mar 2008 19:58:47 -0000 http://perforce.freebsd.org/chv.cgi?CH=137253 Change 137253 by rwatson@rwatson_cinnamon on 2008/03/09 19:58:30 Add a note of caution on memory ordering, etc, to bpf.h when describing the shared memory header. Affected files ... .. //depot/projects/zcopybpf/src/sys/net/bpf.h#25 edit Differences ... ==== //depot/projects/zcopybpf/src/sys/net/bpf.h#25 (text+ko) ==== @@ -177,7 +177,10 @@ /* * When using zero-copy BPF buffers, a shared memory header is present * allowing the kernel BPF implementation and user process to synchronize - * without using system calls. This structure defines that header. + * without using system calls. This structure defines that header. When + * accessing these fields, appropriate atomic operation and memory barriers + * are required in order not to see stale or out-of-order data; see bpf(4) + * for reference code to access these fields from userspace. * * The layout of this structure is critical, and must not be changed; if must * fit in a single page on all architectures.