[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEf4BzZEDArh8kL-mredwYb=GAOXEue=rGAjOaM0qGjj5RG6RA@mail.gmail.com>
Date: Wed, 27 May 2020 23:08:24 -0700
From: Andrii Nakryiko <andrii.nakryiko@...il.com>
To: Jakub Sitnicki <jakub@...udflare.com>
Cc: bpf <bpf@...r.kernel.org>, Networking <netdev@...r.kernel.org>,
kernel-team@...udflare.com
Subject: Re: [PATCH bpf-next 8/8] selftests/bpf: Add tests for attaching
bpf_link to netns
On Wed, May 27, 2020 at 12:16 PM Jakub Sitnicki <jakub@...udflare.com> wrote:
>
> Extend the existing test case for flow dissector attaching to cover:
>
> - link creation,
> - link updates,
> - link info querying,
> - mixing links with direct prog attachment.
>
> Signed-off-by: Jakub Sitnicki <jakub@...udflare.com>
> ---
You are not using bpf_program__attach_netns() at all. Would be nice to
actually use higher-level API here...
Also... what's up with people using CHECK_FAIL + perror instead of
CHECK? Is CHECK being avoided for some reason or people are just not
aware of it (which is strange, because CHECK was there before
CHECK_FAIL)?
> .../bpf/prog_tests/flow_dissector_reattach.c | 500 +++++++++++++++++-
> 1 file changed, 471 insertions(+), 29 deletions(-)
>
[...]
Powered by blists - more mailing lists