diff options
author | Maciej Fijalkowski <maciej.fijalkowski@intel.com> | 2021-03-30 00:43:06 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-03-30 18:24:39 +0200 |
commit | c9d27c9e8dc7ccced65007a4d5d3640cad42adfc (patch) | |
tree | 63b4ee169b18673ae9de82e0a481f3b5e9cf1f6f /tools/testing/selftests/bpf/xdpxceiver.c | |
parent | libbpf: xsk: Use bpf_link (diff) | |
download | linux-c9d27c9e8dc7ccced65007a4d5d3640cad42adfc.tar.xz linux-c9d27c9e8dc7ccced65007a4d5d3640cad42adfc.zip |
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 <maciej.fijalkowski@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210329224316.17793-8-maciej.fijalkowski@intel.com
Diffstat (limited to 'tools/testing/selftests/bpf/xdpxceiver.c')
0 files changed, 0 insertions, 0 deletions