From: Szabolcs Nagy Date: Mon, 9 Feb 2015 21:22:13 +0000 (+0100) Subject: add new socket options SO_INCOMING_CPU, SO_ATTACH_BPF, SO_DETACH_BPF X-Git-Tag: v1.1.7~56 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=70572dce07a631e2f818b34f5679c57eeebc9779;p=oweals%2Fmusl.git add new socket options SO_INCOMING_CPU, SO_ATTACH_BPF, SO_DETACH_BPF 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. --- diff --git a/include/sys/socket.h b/include/sys/socket.h index b911d6ee..077fb3f8 100644 --- 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