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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 2054CC3E8C5 for ; Sun, 29 Nov 2020 06:17:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D08602076A for ; Sun, 29 Nov 2020 06:17:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20150623.gappssmtp.com header.i=@networkplumber-org.20150623.gappssmtp.com header.b="aeRcnrJj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725897AbgK2GRi (ORCPT ); Sun, 29 Nov 2020 01:17:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgK2GRi (ORCPT ); Sun, 29 Nov 2020 01:17:38 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3453EC0613D2 for ; Sat, 28 Nov 2020 22:16:52 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id l4so1660827pgu.5 for ; Sat, 28 Nov 2020 22:16:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=31+s0q7ELwy1refrSvrmUs31CNRUozjyv/fhDb62J7o=; b=aeRcnrJjrOgI3CrnMQuoNe7diwfO/PE7YIhUymvETvBC9jABpXcwA+rgFpaYW61qt4 tTZZL/kD03QKCl3sBU6zTlQ4a50C9EAU/V70x+24YA5n0z55MBUZsxcf4qTX1m7HvsDH y1g0a5Iat/JjJWjIP8FjHgNa89NLghklSQpdufOQZ2JcfUtqTA6Zm146pGTElstTVouN 4ifT4KTt83iW7lM1UnnfaYELWh/2V510ddo9iEEGtt6RGCn8WFcB7hAn8HvjyyvFZfBy PcJKWOpeyEf29mqFUMhl1TKFxtNkny0TSNRsl20PRF0nDKD45GFXlXrhlxF410OVQgqK ZkSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=31+s0q7ELwy1refrSvrmUs31CNRUozjyv/fhDb62J7o=; b=EmSkx/dTBDNvIs6UANdI5JJmAHNUFubUN1Od8gwViOqqGR25qJU+a28A70JSi3M2NS FbUNUYYzP61a97iWYJA4BYjL253xpAnDGyPz6JPMn9jGoP0+dB3/MUW2CnzEVWZpoCT5 MhzcAdM/qjAQ6CJtTL9SSH28Y1/iHqWLSz/tL3yss5FMMJ0lEz5KNVybHzhqCw2kWk4h pZY0sluzL+abT1LAIsVkNGL9Ch7SvAM5euMQypkPnAWBDZbgnlIaLZGkPorez8ljFTGB AJBAa2p4mqgq6oiTU00Qc+BflY/JnazHDGVbpN32tIcPq2rGk6pB26/No7hal72GUdji UzKg== X-Gm-Message-State: AOAM532qNFpkucxcLi7H29cTCwzqDiZ8adB+FdmQ21vIbr+iKeu7CA0l 0eApNP5ynpTqZ/sXbHbHea/kGQ== X-Google-Smtp-Source: ABdhPJw+oqpKo6th2shFrfO0jESPXweMYYpL26TIKkYiXJ1FqbvQmSj3P2ZxP/e1RxAan+ZHuNKxnw== X-Received: by 2002:a63:4106:: with SMTP id o6mr12781088pga.38.1606630611628; Sat, 28 Nov 2020 22:16:51 -0800 (PST) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id m9sm17753207pjf.20.2020.11.28.22.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2020 22:16:51 -0800 (PST) Date: Sat, 28 Nov 2020 22:16:35 -0800 From: Stephen Hemminger To: Hangbin Liu Cc: Daniel Borkmann , David Ahern , Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , David Miller , Jesper Dangaard Brouer , netdev@vger.kernel.org, bpf@vger.kernel.org, Jiri Benc , Andrii Nakryiko , Toke =?UTF-8?B?SMO4aWxhbmQtSsO4cmdl?= =?UTF-8?B?bnNlbg==?= Subject: Re: [PATCH iproute2-next 0/5] iproute2: add libbpf support Message-ID: <20201128221635.63fdcf69@hermes.local> In-Reply-To: <20201023033855.3894509-1-haliu@redhat.com> References: <20201023033855.3894509-1-haliu@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Fri, 23 Oct 2020 11:38:50 +0800 Hangbin Liu wrote: > This series converts iproute2 to use libbpf for loading and attaching > BPF programs when it is available. This means that iproute2 will > correctly process BTF information and support the new-style BTF-defined > maps, while keeping compatibility with the old internal map definition > syntax. > > This is achieved by checking for libbpf at './configure' time, and using > it if available. By default the system libbpf will be used, but static > linking against a custom libbpf version can be achieved by passing > LIBBPF_DIR to configure. FORCE_LIBBPF can be set to force configure to > abort if no suitable libbpf is found (useful for automatic packaging > that wants to enforce the dependency). > > The old iproute2 bpf code is kept and will be used if no suitable libbpf > is available. When using libbpf, wrapper code ensures that iproute2 will > still understand the old map definition format, including populating > map-in-map and tail call maps before load. > > The examples in bpf/examples are kept, and a separate set of examples > are added with BTF-based map definitions for those examples where this > is possible (libbpf doesn't currently support declaratively populating > tail call maps). Luca wants to put this in Debian 11 (good idea), but that means: 1. It has to work with 5.10 release and kernel. 2. Someone has to test it. 3. The 5.10 is a LTS kernel release which means BPF developers have to agree to supporting LTS releases. If someone steps up to doing this then I would be happy to merge it now for 5.10. Otherwise it won't show up until 5.11.