BPF List
 help / color / mirror / Atom feed
From: Alexei Starovoitov <ast@fb.com>
To: Yonghong Song <yhs@fb.com>,
	"bpf@vger.kernel.org" <bpf@vger.kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>,
	Kernel Team <Kernel-team@fb.com>,
	Kevin Laatz <kevin.laatz@intel.com>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Andrii Nakryiko <andriin@fb.com>
Subject: Re: [PATCH bpf v3] libbpf: handle symbol versioning properly for libbpf.a
Date: Mon, 30 Sep 2019 16:42:48 +0000	[thread overview]
Message-ID: <b23d1e1f-6912-33eb-e7d7-c1e47015cb4c@fb.com> (raw)
In-Reply-To: <20190930162922.2169975-1-yhs@fb.com>

On 9/30/19 9:29 AM, Yonghong Song wrote:
> +OLD_VERSION(xsk_umem__create_v0_0_2, xsk_umem__create, LIBBPF_0.0.2)
> +NEW_VERSION(xsk_umem__create_v0_0_4, xsk_umem__create, LIBBPF_0.0.4)

how this will look when yet another version of this function is 
introduced, say in 0.0.6 ?

OLD_VERSION(xsk_umem__create_v0_0_2, xsk_umem__create, LIBBPF_0.0.2)
OLD_VERSION(xsk_umem__create_v0_0_4, xsk_umem__create, LIBBPF_0.0.4)
NEW_VERSION(xsk_umem__create_v0_0_6, xsk_umem__create, LIBBPF_0.0.6)

0.0.4 will be renamed to OLD_ and the latest addition NEW_ ?
The macro name feels a bit confusing. May be instead of NEW_
call it CURRENT_ ? or DEFAULT_ ?
NEW_ will become not so 'new' few months from now.

  reply	other threads:[~2019-09-30 16:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-30 16:29 [PATCH bpf v3] libbpf: handle symbol versioning properly for libbpf.a Yonghong Song
2019-09-30 16:42 ` Alexei Starovoitov [this message]
2019-09-30 16:56   ` Yonghong Song
2019-09-30 18:18     ` Alexei Starovoitov

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=b23d1e1f-6912-33eb-e7d7-c1e47015cb4c@fb.com \
    --to=ast@fb.com \
    --cc=Kernel-team@fb.com \
    --cc=acme@redhat.com \
    --cc=andriin@fb.com \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=kevin.laatz@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=yhs@fb.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