cvs commit: src/sys/netinet udp_usrreq.c
    Robert Watson 
    rwatson at FreeBSD.org
       
    Thu Aug  5 19:08:32 PDT 2004
    
    
  
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
    
    
More information about the cvs-all
mailing list