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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 13B1CC07E9B for ; Tue, 20 Jul 2021 13:07:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F218E61186 for ; Tue, 20 Jul 2021 13:07:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234766AbhGTM0L (ORCPT ); Tue, 20 Jul 2021 08:26:11 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:11458 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238412AbhGTMZR (ORCPT ); Tue, 20 Jul 2021 08:25:17 -0400 Received: from dggeme756-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GTf4n4qbszcgM4; Tue, 20 Jul 2021 21:02:17 +0800 (CST) Received: from [10.174.178.171] (10.174.178.171) by dggeme756-chm.china.huawei.com (10.3.19.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 20 Jul 2021 21:05:39 +0800 Subject: Re: Ask for help about bpf map To: =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , Alexei Starovoitov CC: Andrii Nakryiko , bpf , Networking , David Ahern References: <5aebe6f4-ca0d-4f64-8ee6-b68c58675271@huawei.com> <8735sidtwe.fsf@toke.dk> <26db412c-a8b7-6d37-844f-7909a0c5744b@huawei.com> <189e4437-bb2c-2573-be96-0d6776feb5dd@huawei.com> <6b659192-5133-981e-0c43-7ca1120edd9c@huawei.com> <87wnpmtr5j.fsf@toke.dk> From: "luwei (O)" Message-ID: Date: Tue, 20 Jul 2021 21:05:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <87wnpmtr5j.fsf@toke.dk> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.178.171] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggeme756-chm.china.huawei.com (10.3.19.102) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org It's very strange, in my virtual host, it is: $ ip -V ip utility, iproute2-5.11.0 but in my physical host: $ ip -V ip utility, iproute2-5.11.0, libbpf 0.5.0 I compiled iproute2 in the same way as I mentioned previously, and the kernel versions are both 5.13 (in fact the same code) . 在 2021/7/19 8:38 PM, Toke Høiland-Jørgensen 写道: > "luwei (O)" writes: > >> Andrii and Toke inspired me. You are right, the libbpf version should be included in -V output >> , but not mine. I searched google and found this page: https://www.spinics.net/lists/netdev/msg700482.html >> , according which I re-compiled iproute2 and it works. > Did the libbpf version appear in the output of 'ip -V' after you > recompiled and enabled it? It does in mine: > > $ ./ip/ip -V > ip utility, iproute2-5.13.0, libbpf 0.4.0 > > -Toke > > . -- Best Regards, Lu Wei