diff options
| author | Martin KaFai Lau <[email protected]> | 2019-06-13 15:00:01 -0700 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-06-15 01:21:19 +0200 |
| commit | 99f3a064bc2e4bd5fe50218646c5be342f2ad18c (patch) | |
| tree | b5eb23bfcbf922d9773265810bb4119e57a31a8a /tools/perf/scripts/python | |
| 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 <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Reviewed-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions