Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Aug 2004 02:08:31 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet udp_usrreq.c
Message-ID:  <200408060208.i7628VK6093423@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408060208.i7628VK6093423>