diff options
| author | Martin KaFai Lau <[email protected]> | 2022-11-29 07:08:58 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-11-30 21:47:43 +0000 |
| commit | 3084097c369c57c9bbd81e5bf47b36b6b27390fc (patch) | |
| tree | 9bffb360c71cb8f3c146ddeceef6ee0a43d9ca6c /tools/testing/selftests/bpf/test_cpp.cpp | |
| parent | selftests/bpf: Avoid pinning bpf prog in the netns_load_bpf() callers (diff) | |
| download | kernel-3084097c369c57c9bbd81e5bf47b36b6b27390fc.tar.gz kernel-3084097c369c57c9bbd81e5bf47b36b6b27390fc.zip | |
selftests/bpf: Remove the "/sys" mount and umount dance in {open,close}_netns
The previous patches have removed the need to do the mount and umount
dance when switching netns. In particular:
* Avoid remounting /sys/fs/bpf to have a clean start
* Avoid remounting /sys to get a ifindex of a particular netns
This patch can finally remove the mount and umount dance in
{open,close}_netns which is unnecessarily complicated and
error-prone.
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/test_cpp.cpp')
0 files changed, 0 insertions, 0 deletions
