projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
339cc25
)
add new socket options SO_INCOMING_CPU, SO_ATTACH_BPF, SO_DETACH_BPF
author
Szabolcs Nagy
<nsz@port70.net>
Mon, 9 Feb 2015 21:22:13 +0000
(22:22 +0100)
committer
Szabolcs Nagy
<nsz@port70.net>
Mon, 9 Feb 2015 21:22:13 +0000
(22:22 +0100)
these socket options are new in linux v3.19, introduced in commit
2c8c56e15df3d4c2af3d656e44feb18789f75837
and commit
89aa075832b0da4402acebd698d0411dcc82d03e
with SO_INCOMING_CPU the cpu can be queried on which a socket is
managed inside the kernel and optimize polling of large number of
sockets accordingly.
SO_ATTACH_BPF lets eBPF programs (created by the bpf syscall) to
be attached to sockets.
include/sys/socket.h
patch
|
blob
|
history
diff --git
a/include/sys/socket.h
b/include/sys/socket.h
index b911d6eea34c44d51b7284425e291043d8be7186..077fb3f8afb18fd131a91d6d94a342481d92602e 100644
(file)
--- a/
include/sys/socket.h
+++ b/
include/sys/socket.h
@@
-215,6
+215,10
@@
struct linger
#define SO_BUSY_POLL 46
#define SO_MAX_PACING_RATE 47
#define SO_BPF_EXTENSIONS 48
+#define SO_INCOMING_CPU 49
+#define SO_ATTACH_BPF 50
+#define SO_DETACH_BPF SO_DETACH_FILTER
+
#ifndef SOL_SOCKET
#define SOL_SOCKET 1