Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4857573rwb; Tue, 6 Sep 2022 14:01:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR4i+zxF2brERdzCaWA6b/hbl85DEE2zPprl6RNUJ9POiPEbGhaMu3ulE1F4inp9xvKnl34m X-Received: by 2002:a17:907:6090:b0:734:be0c:e2e7 with SMTP id ht16-20020a170907609000b00734be0ce2e7mr242615ejc.408.1662498067377; Tue, 06 Sep 2022 14:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662498067; cv=none; d=google.com; s=arc-20160816; b=nwmZeECA5B72ov37bxZiUSCYX8VcR68+neR7YavZILE7djfwlqUPN+5hZGp6EJaBeu ALpW3K4u+UrzenqUl6I21MMoFrdvR5bosOISSQuc+u1GfLeHEt3JIgMC5KPyapx71mRe xQIBWtgmu+uW8BGsBdKpw75FHuc0ckyKZWfih309jo8J6yfTdIWz48C+2i46fJ1H1tee DtlMzJ6YGTivLnFLW7rlZYFC3YHFrjWETI7n/bBo4fyYhxtSk39qD1EgEw1nxe16pYcC jTSmmXTvi+aP9C0PjLyg2US8Yg5FJ0L18pi5U/T2bf9QOwtEkuoClP+vSLtxCz6vpovE YBuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8djU8pY+2TdakRcQQ2YPZtxWZAOApvlgiA1MQV2YNgI=; b=McY6Qa3h34gP2K6mhKkrEyFn1DEBTcmFl6asYlayh/qmXxz3SWMpJ6DG0OKv7WOpfE UCLnARW6fqIkjKkR5jsynGjNh6sBsYPT8ArcnqwmQKgVuWtVcWvIhf95oUJrVoOtCqFC Foxf3y40Ncjo5PXxkcOi4BFfk9LyufZb5qyzU+OFa8Jwh2FEDkaJxcDkg6eu1gAsmsF8 A3CzD4fioK0WI2iQPYd0iVIapBCGFiz25LkOHLH5/Yj3QxBRsPLQ2QRa8JjGZdgjqwH0 TbZp84VXShZ+HkAJIy83wFO955ZOIc6xGpGBk6dDKhkgVIQjAorGQAcN9+CNF5w3rkZk 9M2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IBxJB0kY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf36-20020a1709077f2400b007414081b2ebsi11154163ejc.148.2022.09.06.14.00.40; Tue, 06 Sep 2022 14:01:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IBxJB0kY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229801AbiIFUbn (ORCPT + 99 others); Tue, 6 Sep 2022 16:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiIFUbm (ORCPT ); Tue, 6 Sep 2022 16:31:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56B0090C48; Tue, 6 Sep 2022 13:31:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EF6836157D; Tue, 6 Sep 2022 20:31:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59216C433D6; Tue, 6 Sep 2022 20:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662496300; bh=r6C8I6H9slvWl19aG25ndT1qrQs1nCb5lub5kG6oMVM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IBxJB0kY8IdmdiwIctGlt20BRhMPgy/q7I6Ft2NI2cnP5lk97gNaFqVFwkfvmFYwp z8K7gbDiLCKZkB9WBFvnysDzlY4vnkqQbhmMClOEXhiJZ1YXe3QogxbGGr3D8FL6n0 V9pi7j4lewk7w1lcu0NDT8o5a4HiUlGpt2pnKcHQGae7PIAb+cswhzsHp6lH+cIUM+ 9h85gOnc15YhRY7rB5ZyNO+Z16sbSdSHLK/OuKFIrko406Sp3DagqOsSttzKDc5cSr vX0S/ZvwybNeEIg/TDK2AMM/A77ld9H3Mq68rzs4xXy4GKhKbLMCYe5xMI9oovwR8F sWGeu6GvX2qqQ== Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1278624b7c4so12847074fac.5; Tue, 06 Sep 2022 13:31:40 -0700 (PDT) X-Gm-Message-State: ACgBeo38/WPfIq/+csrtKdeNytkYK4dE9BgA3DlrMqRMybVcIHLnUZvW SpeOQ60tysCDB+AeUlvuCZYfM6gg5yTc3bdz8gc= X-Received: by 2002:a05:6808:195:b0:342:ed58:52b5 with SMTP id w21-20020a056808019500b00342ed5852b5mr86646oic.22.1662496299511; Tue, 06 Sep 2022 13:31:39 -0700 (PDT) MIME-Version: 1.0 References: <6d349d1047f44001b926f80ad5416245@huawei.com> In-Reply-To: <6d349d1047f44001b926f80ad5416245@huawei.com> From: Song Liu Date: Tue, 6 Sep 2022 13:31:28 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] libbpf: Clean up legacy bpf maps declaration in bpf_helpers To: "Liuxin(EulerOS)" Cc: "andrii@kernel.org" , "daniel@iogearbox.net" , "ast@kernel.org" , "martin.lau@linux.dev" , "yhs@fb.com" , "john.fastabend@gmail.com" , "kpsingh@kernel.org" , "sdf@google.com" , "haoluo@google.com" , "jolsa@kernel.org" , "bpf@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "854182924@qq.com" <854182924@qq.com>, "Yanan (Euler)" , "Wuchangye (EulerOS)" , Xiesongyang , "zhudi (E)" , "kongweibin (A)" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 5, 2022 at 1:38 AM Liuxin(EulerOS) wrote: > > Legacy bpf maps declaration were no longer supported in Libbpf 1.0, > so it was time to remove the definition of bpf_map_def in > bpf_helpers.h. > > LINK:[1] https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0 > > Signed-off-by: Liu Xin This looks a little weird. From: "Liuxin(EulerOS)" Please fix your name in git config: Otherwise, Acked-by: Song Liu > --- > tools/lib/bpf/bpf_helpers.h | 12 ------------ > 1 file changed, 12 deletions(-) > > diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h > index 867b73483..9cad13e7f 100644 > --- a/tools/lib/bpf/bpf_helpers.h > +++ b/tools/lib/bpf/bpf_helpers.h > @@ -167,18 +167,6 @@ bpf_tail_call_static(void *ctx, const void *map, const __u32 slot) > } > #endif > > -/* > - * Helper structure used by eBPF C program > - * to describe BPF map attributes to libbpf loader > - */ > -struct bpf_map_def { > - unsigned int type; > - unsigned int key_size; > - unsigned int value_size; > - unsigned int max_entries; > - unsigned int map_flags; > -} __attribute__((deprecated("use BTF-defined maps in .maps section"))); > - > enum libbpf_pin_type { > LIBBPF_PIN_NONE, > /* PIN_BY_NAME: pin maps by name (in /sys/fs/bpf by default) */ > -- > 2.33.0