[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEf4Bza5=ejHkGWUhs3MDQQZZbRvSapApgkWapZ69gzrV1qwag@mail.gmail.com>
Date: Mon, 15 Mar 2021 22:35:49 -0700
From: Andrii Nakryiko <andrii.nakryiko@...il.com>
To: Maciej Fijalkowski <maciej.fijalkowski@...el.com>
Cc: bpf <bpf@...r.kernel.org>, Networking <netdev@...r.kernel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Alexei Starovoitov <ast@...nel.org>,
Björn Töpel <bjorn.topel@...el.com>,
Magnus Karlsson <magnus.karlsson@...el.com>,
ciara.loftus@...el.com, john fastabend <john.fastabend@...il.com>,
Toke Høiland-Jørgensen <toke@...hat.com>
Subject: Re: [PATCH v2 bpf-next 07/17] samples: bpf: do not unload prog within xdpsock
On Thu, Mar 11, 2021 at 7:42 AM Maciej Fijalkowski
<maciej.fijalkowski@...el.com> 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.
It's still a good style to clean up resources explicitly, if you can...
>
> While at it, don't dump stats on error path.
>
> Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@...el.com>
> ---
> samples/bpf/xdpsock_user.c | 55 ++++++++++----------------------------
> 1 file changed, 14 insertions(+), 41 deletions(-)
>
[...]
Powered by blists - more mailing lists