From: Craig Gallek <kraigatgoog@gmail.com>
To: netdev@vger.kernel.org, David Miller <davem@davemloft.net>
Subject: [PATCH net-next 0/4] Faster SO_REUSEPORT
Date: Tue, 22 Dec 2015 15:05:06 -0500 [thread overview]
Message-ID: <1450814710-17850-1-git-send-email-kraigatgoog@gmail.com> (raw)
From: Craig Gallek <kraig@google.com>
This series contains two optimizations for the SO_REUSEPORT feature:
Faster lookup when selecting a socket for an incoming packet and
the ability to select the socket from the group using a BPF program.
This series only includes the UDP path. I plan to submit a follow-up
including the TCP path if the implementation in this series is
acceptable.
Craig Gallek (4):
soreuseport: define reuseport groups
soreuseport: fast reuseport UDP socket selection
soreuseport: setsockopt SO_ATTACH_REUSEPORT_[CE]BPF
soreuseport: BPF selection functional test
arch/alpha/include/uapi/asm/socket.h | 3 +
arch/avr32/include/uapi/asm/socket.h | 3 +
arch/frv/include/uapi/asm/socket.h | 3 +
arch/ia64/include/uapi/asm/socket.h | 3 +
arch/m32r/include/uapi/asm/socket.h | 3 +
arch/mips/include/uapi/asm/socket.h | 3 +
arch/mn10300/include/uapi/asm/socket.h | 3 +
arch/parisc/include/uapi/asm/socket.h | 3 +
arch/powerpc/include/uapi/asm/socket.h | 3 +
arch/s390/include/uapi/asm/socket.h | 3 +
arch/sparc/include/uapi/asm/socket.h | 3 +
arch/xtensa/include/uapi/asm/socket.h | 3 +
include/linux/filter.h | 2 +
include/net/addrconf.h | 3 +-
include/net/sock.h | 2 +
include/net/sock_reuseport.h | 29 ++
include/net/udp.h | 7 +-
include/uapi/asm-generic/socket.h | 3 +
net/core/Makefile | 2 +-
net/core/filter.c | 120 +++++--
net/core/sock.c | 29 ++
net/core/sock_reuseport.c | 251 +++++++++++++++
net/ipv4/udp.c | 127 ++++++--
net/ipv4/udp_diag.c | 4 +-
net/ipv6/inet6_connection_sock.c | 4 +-
net/ipv6/udp.c | 56 +++-
tools/testing/selftests/net/.gitignore | 1 +
tools/testing/selftests/net/Makefile | 2 +-
tools/testing/selftests/net/reuseport_bpf.c | 467 ++++++++++++++++++++++++++++
29 files changed, 1077 insertions(+), 68 deletions(-)
create mode 100644 include/net/sock_reuseport.h
create mode 100644 net/core/sock_reuseport.c
create mode 100644 tools/testing/selftests/net/reuseport_bpf.c
--
2.6.0.rc2.230.g3dd15c0
next reply other threads:[~2015-12-22 20:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-22 20:05 Craig Gallek [this message]
2015-12-22 20:05 ` [PATCH net-next 1/4] soreuseport: define reuseport groups Craig Gallek
2015-12-22 21:40 ` David Miller
2015-12-22 21:58 ` Craig Gallek
2015-12-22 22:03 ` David Miller
2015-12-22 22:11 ` kbuild test robot
2015-12-22 22:39 ` Craig Gallek
2015-12-22 20:05 ` [PATCH net-next 2/4] soreuseport: fast reuseport UDP socket selection Craig Gallek
2015-12-22 20:05 ` [PATCH net-next 3/4] soreuseport: setsockopt SO_ATTACH_REUSEPORT_[CE]BPF Craig Gallek
2015-12-24 16:36 ` Alexei Starovoitov
2015-12-22 20:05 ` [PATCH net-next 4/4] soreuseport: BPF selection functional test Craig Gallek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1450814710-17850-1-git-send-email-kraigatgoog@gmail.com \
--to=kraigatgoog@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).