diff options
author | Maciej Fijalkowski <[email protected]> | 2021-03-30 00:43:06 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-03-30 09:24:39 -0700 |
commit | c9d27c9e8dc7ccced65007a4d5d3640cad42adfc (patch) | |
tree | 63b4ee169b18673ae9de82e0a481f3b5e9cf1f6f /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 10397994d30f2de51bfd9321ed9ddb789464f572 (diff) |
samples: bpf: Do not unload prog within xdpsock
With the introduction of bpf_link in xsk's libbpf part, there's no
further need for explicit unload of prog on xdpsock's termination. When
process dies, the bpf_link's refcount will be decremented and resources
will be unloaded/freed under the hood in case when there are no more
active users.
While at it, don't dump stats on error path.
Signed-off-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions