mbox series

[v2,bpf-next,0/3] bpf: net: Detach BPF prog from reuseport sk

Message ID 20190612232412.3196844-1-kafai@fb.com
Headers show
Series bpf: net: Detach BPF prog from reuseport sk | expand

Message

Martin KaFai Lau June 12, 2019, 11:24 p.m. UTC
v2:
Copy asm-generic/socket.h to tools/ in the new patch 2 (Stanislav Fomichev)

This patch adds SO_DETACH_REUSEPORT_BPF to detach BPF prog from
reuseport sk.

Martin KaFai Lau (3):
  bpf: net: Add SO_DETACH_REUSEPORT_BPF
  bpf: Sync asm-generic/socket.h to tools/
  bpf: Add test for SO_REUSEPORT_DETACH_BPF

 arch/alpha/include/uapi/asm/socket.h          |  2 +
 arch/mips/include/uapi/asm/socket.h           |  2 +
 arch/parisc/include/uapi/asm/socket.h         |  2 +
 arch/sparc/include/uapi/asm/socket.h          |  2 +
 include/net/sock_reuseport.h                  |  2 +
 include/uapi/asm-generic/socket.h             |  2 +
 net/core/sock.c                               |  4 ++
 net/core/sock_reuseport.c                     | 24 +++++++++
 .../include}/uapi/asm-generic/socket.h        |  2 +
 .../selftests/bpf/test_select_reuseport.c     | 54 +++++++++++++++++++
 10 files changed, 96 insertions(+)
 copy {include => tools/include}/uapi/asm-generic/socket.h (98%)