Thread (37 messages) 37 messages, 7 authors, 2021-02-23

RE: [PATCH bpf-next 3/3] samples: bpf: do not unload prog within xdpsock

From: John Fastabend <john.fastabend@gmail.com>
Date: 2021-02-15 20:25:44
Also in: bpf

Maciej Fijalkowski wrote:
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>
---
Can we also use it from selftests prog so we have a test that is run there
using this? Looks like xdpxceiver.c could do the link step as well?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help