From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36DACC55178 for ; Fri, 6 Nov 2020 21:04:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D40F6208C7 for ; Fri, 6 Nov 2020 21:04:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MwysLVNa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728561AbgKFVEa (ORCPT ); Fri, 6 Nov 2020 16:04:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727129AbgKFVEa (ORCPT ); Fri, 6 Nov 2020 16:04:30 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C9A4C0613CF; Fri, 6 Nov 2020 13:04:30 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id r19so1462085lfe.6; Fri, 06 Nov 2020 13:04:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z+0ex8I3tLl6x95xLzb47rCcAAQngF1SRAV1Cc53oC4=; b=MwysLVNaSHKRaUmi9iH6w/qYoch4DfIBamYwuGMfSyyH3gbFUA1jbA2l6pCLe/xudg wzGpYj3bV0I7Qqk2uNXNWk8slbUePRjeEWacfWjUW7jPTy1a3rjvvXjUOvqaGI6i21zL 8qDDRJ5H7XzulG5/kt8YpcTZ7ou4JmG14XCCN2VCHOzhteqhBEh6eHuGJYgMFfZB5YTa 1g9LCLb4fkrP6rh4+0iBwZKgjpijHMP2ouQsWZ62t08xnWC9exlly82JPkQmzqqrqcL4 yVKul3ilkbnSFMicX4xqKctKJNbpMPc4KSbOSJbsPGGno4fF2r8av4/MfSYx/iCsCJ3Z ImBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z+0ex8I3tLl6x95xLzb47rCcAAQngF1SRAV1Cc53oC4=; b=ZNKSn56buqKM9TzktVGT3Klkc0gnaczYgo8WSb1C28W7NRUyGsJTZFRBUvRwKwxxMu JU2JcDJuoJdZtFitTAeMy/E4ZO1ASDzKWkV772BDN3tCDr95/uFIKFoN5uSrTsy9TAEK 3qCMZZDifchkQZfSheqUAPnhNYKEoWHvVxgQ0/qWNBxB3mfMYniLBjK3NX5Xb2Qn9X0e 9W7UlbaclSHf5V4k0ygKlk7OSA+/2IKP0PUtZDgnWQ28hNbAPnYuAMUlGqIQmsKCOl+Q FE/NpiqvXBGbBTzp7huWahrvQSWYZzQ3ynQfDUs1h6Z8e5n/vk00grVXTtor+sQtVNJA BieA== X-Gm-Message-State: AOAM533NthKMKh69cy6uxtw6x4LLS28BxMw/Ybps2Novt45KoO3LrsGC pqTshRPxf8cm/jnEhy2DYce8X/HHaqAU1KhpodlFvOGx X-Google-Smtp-Source: ABdhPJyKxdxHs45KWUHFG4GNf7srf59aY8rwNB2aFR4uLkkDU4YyllboPBpDGMDZBNliOtLjvtWEb/tb28BYWcetI4A= X-Received: by 2002:ac2:5e83:: with SMTP id b3mr1487156lfq.119.1604696668501; Fri, 06 Nov 2020 13:04:28 -0800 (PST) MIME-Version: 1.0 References: <20201028132529.3763875-1-haliu@redhat.com> <20201029151146.3810859-1-haliu@redhat.com> <646cdfd9-5d6a-730d-7b46-f2b13f9e9a41@gmail.com> <3306d19c-346d-fcbc-bd48-f141db26a2aa@gmail.com> <71af5d23-2303-d507-39b5-833dd6ea6a10@gmail.com> <20201103225554.pjyuuhdklj5idk3u@ast-mbp.dhcp.thefacebook.com> <20201104021730.GK2408@dhcp-12-153.nay.redhat.com> <20201104031145.nmtggnzomfee4fma@ast-mbp.dhcp.thefacebook.com> <07f149f6-f8ac-96b9-350d-b289ef16d82f@solarflare.com> <20201106094425.5cc49609@redhat.com> In-Reply-To: From: Alexei Starovoitov Date: Fri, 6 Nov 2020 13:04:16 -0800 Message-ID: Subject: Re: [PATCHv3 iproute2-next 0/5] iproute2: add libbpf support To: Andrii Nakryiko Cc: Jiri Benc , Edward Cree , Hangbin Liu , David Ahern , Daniel Borkmann , Stephen Hemminger , Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , David Miller , Jesper Dangaard Brouer , Networking , bpf , Andrii Nakryiko , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Fri, Nov 6, 2020 at 12:58 PM Andrii Nakryiko wrote: > > On Fri, Nov 6, 2020 at 12:44 AM Jiri Benc wrote: > > > > On Thu, 5 Nov 2020 12:19:00 -0800, Andrii Nakryiko wrote: > > > I'll just quote myself here for your convenience. > > > > Sorry, I missed your original email for some reason. > > > > > Submodule is a way that I know of to make this better for end users. > > > If there are other ways to pull this off with shared library use, I'm > > > all for it, it will save the security angle that distros are arguing > > > for. E.g., if distributions will always have the latest libbpf > > > available almost as soon as it's cut upstream *and* new iproute2 > > > versions enforce the latest libbpf when they are packaged/released, > > > then this might work equivalently for end users. If Linux distros > > > would be willing to do this faithfully and promptly, I have no > > > objections whatsoever. Because all that matters is BPF end user > > > experience, as Daniel explained above. > > > > That's basically what we already do, for both Fedora and RHEL. > > > > Of course, it follows the distro release cycle, i.e. no version > > upgrades - or very limited ones - during lifetime of a particular > > release. But that would not be different if libbpf was bundled in > > individual projects. > > Alright. Hopefully this would be sufficient in practice. I think bumping the minimal version of libbpf with every iproute2 release is necessary as well. Today iproute2-next should require 0.2.0. The cycle after it should be 0.3.0 and so on. This way at least some correlation between iproute2 and libbpf will be established. Otherwise it's a mess of versions and functionality from user point of view.