cvs commit: src/sys/kern uipc_socket.c src/sys/netinet udp_usrreq.c src/sys/sys socketvar.h

From: Robert Watson <>
Date: Wed, 2 Jul 2008 23:23:27 +0000 (UTC)
rwatson     2008-07-02 23:23:27 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_socket.c 
    sys/netinet          udp_usrreq.c 
    sys/sys              socketvar.h 
  SVN rev 180198 on 2008-07-02 23:23:27Z by rwatson
  Add soreceive_dgram(9), an optimized socket receive function for use by
  datagram-only protocols, such as UDP.  This version removes use of
  sblock(), which is not required due to an inability to interlace data
  improperly with datagrams, as well as avoiding some of the larger loops
  and state management that don't apply on datagram sockets.
  This is experimental code, so hook it up only for UDPv4 for testing; if
  there are problems we may need to revise it or turn it off by default,
  but it offers *significant* performance improvements for threaded UDP
  applications such as BIND9, nsd, and memcached using UDP.
  Tested by:      kris, ps
  Revision  Changes    Path
  1.311     +234 -0    src/sys/kern/uipc_socket.c
  1.224     +1 -0      src/sys/netinet/udp_usrreq.c
  1.165     +3 -0      src/sys/sys/socketvar.h
Received on Wed Jul 02 2008 - 23:24:53 UTC