From owner-cvs-all@FreeBSD.ORG Sun Jan 9 05:00:41 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E955F16A4CF; Sun, 9 Jan 2005 05:00:41 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5C9E43D1D; Sun, 9 Jan 2005 05:00:41 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j0950fP6040785; Sun, 9 Jan 2005 05:00:41 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0950f7E040784; Sun, 9 Jan 2005 05:00:41 GMT (envelope-from rwatson) Message-Id: <200501090500.j0950f7E040784@repoman.freebsd.org> From: Robert Watson Date: Sun, 9 Jan 2005 05:00:41 +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/netipx ipx_input.c ipx_pcb.c ipx_pcb.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 05:00:42 -0000 rwatson 2005-01-09 05:00:41 UTC FreeBSD src repository Modified files: sys/netipx ipx_input.c ipx_pcb.c ipx_pcb.h Log: Introduce a global mutex, ipxpcb_list_mtx, to protect the global IPX PCB lists. Add macros to initialize, destroy, lock, unlock, and assert the mutex. Initialize the mutex when IPX is started. Add per-IPX PCB mutexes, ipxp_mtx in struct ipxpcb, to protect per-PCB IPX/SPX state. Add macros to initialize, destroy, lock, unlock, and assert the mutex. Initialize the mutex when a new PCB is allocated; destroy it when the PCB is free'd. MFC after: 2 weeks Revision Changes Path 1.44 +3 -0 src/sys/netipx/ipx_input.c 1.42 +2 -0 src/sys/netipx/ipx_pcb.c 1.23 +19 -1 src/sys/netipx/ipx_pcb.h