From owner-cvs-all@FreeBSD.ORG Fri Aug 6 02:08:32 2004 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 F305F16A4CE; Fri, 6 Aug 2004 02:08:31 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D296A43D5A; Fri, 6 Aug 2004 02:08:31 +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 i7628VYG093424; Fri, 6 Aug 2004 02:08:31 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7628VK6093423; Fri, 6 Aug 2004 02:08:31 GMT (envelope-from rwatson) Message-Id: <200408060208.i7628VK6093423@repoman.freebsd.org> From: Robert Watson Date: Fri, 6 Aug 2004 02:08:31 +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/netinet udp_usrreq.c 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: Fri, 06 Aug 2004 02:08:32 -0000 rwatson 2004-08-06 02:08:31 UTC FreeBSD src repository Modified files: sys/netinet udp_usrreq.c Log: When iterating the UDP inpcb list processing an inbound broadcast or multicast packet, we don't need to acquire the inpcb mutex unless we are actually using inpcb fields other than the bound port and address. Since we hold the pcbinfo lock already, these can't change. Defer acquiring the inpcb mutex until we have a high chance of a match. This avoids about 120 mutex operations per UDP broadcast packet received on one of my work systems. Reviewed by: sam Revision Changes Path 1.158 +9 -10 src/sys/netinet/udp_usrreq.c