git: socket: Provide socket owner cpuid hint

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Sep 28 06:14:36 PDT 2014


commit 8ba7dcb1cbd864984e670341b66aba012aa29bb0
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Sep 25 21:51:14 2014 +0800

    socket: Provide socket owner cpuid hint
    
    If the cpuid hint could not be provided or the cpuid hint does not make
    sense, -1 will be returned as cpuid hint, e.g. TCP listen sockets w/o
    SO_REUSEPORT.
    
    This helps avoiding unnecessary IPIs and contention on receiving sockbuf
    token.

Summary of changes:
 sys/kern/uipc_socket.c   |  6 ++++++
 sys/netinet/ip_output.c  | 10 ++++++++++
 sys/netinet/raw_ip.c     | 13 +++++++++++--
 sys/netinet/tcp_usrreq.c | 23 ++++++++++++++++++++++-
 sys/sys/socket.h         |  4 +++-
 5 files changed, 52 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8ba7dcb1cbd864984e670341b66aba012aa29bb0


-- 
DragonFly BSD source repository


More information about the Commits mailing list