Kaynağa Gözat

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.
Szabolcs Nagy 10 yıl önce
ebeveyn
işleme
70572dce07
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      include/sys/socket.h

+ 4 - 0
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