From: Daniel Borkmann <daniel@iogearbox.net>
To: Jakub Kicinski <jakub.kicinski@netronome.com>,
alexei.starovoitov@gmail.com
Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, oss-drivers@netronome.com
Subject: Re: [PATCH bpf-next v2 0/5] samples: bpf: continue effort to get rid of bpf_load
Date: Fri, 1 Mar 2019 01:00:43 +0100 [thread overview]
Message-ID: <f2680751-be12-7d31-34ac-251d7d4ef617@iogearbox.net> (raw)
In-Reply-To: <20190228030414.18973-1-jakub.kicinski@netronome.com>
On 02/28/2019 04:04 AM, Jakub Kicinski wrote:
> Hi!
>
> This set is next part of a quest to get rid of the bpf_load
> ELF loader. It fixes some minor issues with the samples and
> starts the conversion.
>
> First patch fixes ping invocations, ping localhost defaults
> to IPv6 on modern setups. Next load_sock_ops sample is removed
> and users are directed towards using bpftool directly.
>
> Patch 4 removes the use of bpf_load from samples which don't
> need the auto-attachment functionality at all.
>
> Patch 5 improves symbol counting in libbpf, it's not currently
> an issue but it will be when anyone adds a symbol with a long
> name. Let's make sure that person doesn't have to spend time
> scratching their head and wondering why .a and .so symbol
> counts don't match.
>
> v2: - specify prog_type where possible (Andrii).
>
> Jakub Kicinski (5):
> samples: bpf: force IPv4 in ping
> samples: bpf: remove load_sock_ops in favour of bpftool
> tools: libbpf: add a correctly named define for map iteration
> samples: bpf: use libbpf where easy
> tools: libbpf: make sure readelf shows full names in build checks
>
> samples/bpf/.gitignore | 1 -
> samples/bpf/Makefile | 8 +-
> samples/bpf/fds_example.c | 10 +-
> samples/bpf/load_sock_ops.c | 97 -------------------
> samples/bpf/sock_example.c | 2 +-
> samples/bpf/sockex1_user.c | 25 ++---
> samples/bpf/sockex2_user.c | 23 +++--
> samples/bpf/sockex3_user.c | 2 +-
> samples/bpf/tcp_basertt_kern.c | 2 +-
> samples/bpf/tcp_bpf.readme | 14 +--
> samples/bpf/tcp_bufs_kern.c | 2 +-
> samples/bpf/tcp_clamp_kern.c | 2 +-
> samples/bpf/tcp_cong_kern.c | 2 +-
> samples/bpf/tcp_iw_kern.c | 2 +-
> samples/bpf/tcp_rwnd_kern.c | 2 +-
> samples/bpf/tcp_synrto_kern.c | 2 +-
> samples/bpf/tcp_tos_reflect_kern.c | 2 +-
> samples/bpf/tracex2_user.c | 2 +-
> tools/bpf/bpftool/prog.c | 4 +-
> tools/lib/bpf/Makefile | 4 +-
> tools/lib/bpf/libbpf.c | 8 +-
> tools/lib/bpf/libbpf.h | 3 +-
> tools/perf/util/bpf-loader.c | 4 +-
> .../testing/selftests/bpf/test_libbpf_open.c | 2 +-
> 24 files changed, 69 insertions(+), 156 deletions(-)
> delete mode 100644 samples/bpf/load_sock_ops.c
>
Applied, thanks for cleaning this up!
prev parent reply other threads:[~2019-03-01 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-28 3:04 [PATCH bpf-next v2 0/5] samples: bpf: continue effort to get rid of bpf_load Jakub Kicinski
2019-02-28 3:04 ` [PATCH bpf-next v2 1/5] samples: bpf: force IPv4 in ping Jakub Kicinski
2019-02-28 3:04 ` [PATCH bpf-next v2 2/5] samples: bpf: remove load_sock_ops in favour of bpftool Jakub Kicinski
2019-02-28 3:04 ` [PATCH bpf-next v2 3/5] tools: libbpf: add a correctly named define for map iteration Jakub Kicinski
2019-02-28 3:04 ` [PATCH bpf-next v2 4/5] samples: bpf: use libbpf where easy Jakub Kicinski
2019-02-28 3:35 ` Andrii Nakryiko
2019-02-28 3:04 ` [PATCH bpf-next v2 5/5] tools: libbpf: make sure readelf shows full names in build checks Jakub Kicinski
2019-02-28 19:16 ` [PATCH bpf-next v2 0/5] samples: bpf: continue effort to get rid of bpf_load Song Liu
2019-03-01 0:00 ` Daniel Borkmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f2680751-be12-7d31-34ac-251d7d4ef617@iogearbox.net \
--to=daniel@iogearbox.net \
--cc=alexei.starovoitov@gmail.com \
--cc=bpf@vger.kernel.org \
--cc=jakub.kicinski@netronome.com \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@netronome.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox