From owner-cvs-src@FreeBSD.ORG Thu Sep 9 00:19:28 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F51A16A4CE; Thu, 9 Sep 2004 00:19:28 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31B0843D48; Thu, 9 Sep 2004 00:19:28 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i890JShF086273; Thu, 9 Sep 2004 00:19:28 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i890JSK2086272; Thu, 9 Sep 2004 00:19:28 GMT (envelope-from rwatson) Message-Id: <200409090019.i890JSK2086272@repoman.freebsd.org> From: Robert Watson Date: Thu, 9 Sep 2004 00:19:28 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net bpf.c bpfdesc.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 00:19:28 -0000 rwatson 2004-09-09 00:19:28 UTC FreeBSD src repository Modified files: sys/net bpf.c bpfdesc.h Log: Reformulate use of linked lists in 'struct bpf_d' and 'struct bpf_if' to use queue(3) list macros rather than hand-crafted lists. While here, move to doubly linked lists to eliminate iterating lists in order to remove entries. This change simplifies and clarifies the list logic in the BPF descriptor code as a first step towards revising the locking strategy. RELENG_5 candidate. Reviewed by: fenner Revision Changes Path 1.135 +20 -35 src/sys/net/bpf.c 1.28 +4 -3 src/sys/net/bpfdesc.h