diff options
| author | Martin KaFai Lau <kafai@fb.com> | 2019-06-13 18:00:01 -0400 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-06-14 19:21:19 -0400 |
| commit | 99f3a064bc2e4bd5fe50218646c5be342f2ad18c (patch) | |
| tree | b5eb23bfcbf922d9773265810bb4119e57a31a8a /arch/parisc/include/uapi/asm/socket.h | |
| parent | e55d54f43d3f11718d9e2800225097fda498e141 (diff) | |
bpf: net: Add SO_DETACH_REUSEPORT_BPF
There is SO_ATTACH_REUSEPORT_[CE]BPF but there is no DETACH.
This patch adds SO_DETACH_REUSEPORT_BPF sockopt. The same
sockopt can be used to undo both SO_ATTACH_REUSEPORT_[CE]BPF.
reseport_detach_prog() is added and it is mostly a mirror
of the existing reuseport_attach_prog(). The differences are,
it does not call reuseport_alloc() and returns -ENOENT when
there is no old prog.
Cc: Craig Gallek <kraig@google.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'arch/parisc/include/uapi/asm/socket.h')
| -rw-r--r-- | arch/parisc/include/uapi/asm/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/include/uapi/asm/socket.h b/arch/parisc/include/uapi/asm/socket.h index 66c5dd245ac7..10173c32195e 100644 --- a/arch/parisc/include/uapi/asm/socket.h +++ b/arch/parisc/include/uapi/asm/socket.h | |||
| @@ -114,6 +114,8 @@ | |||
| 114 | #define SO_RCVTIMEO_NEW 0x4040 | 114 | #define SO_RCVTIMEO_NEW 0x4040 |
| 115 | #define SO_SNDTIMEO_NEW 0x4041 | 115 | #define SO_SNDTIMEO_NEW 0x4041 |
| 116 | 116 | ||
| 117 | #define SO_DETACH_REUSEPORT_BPF 0x4042 | ||
| 118 | |||
| 117 | #if !defined(__KERNEL__) | 119 | #if !defined(__KERNEL__) |
| 118 | 120 | ||
| 119 | #if __BITS_PER_LONG == 64 | 121 | #if __BITS_PER_LONG == 64 |
