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.5 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 E8BADC4320A for ; Fri, 23 Jul 2021 02:07:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C33B760EB5 for ; Fri, 23 Jul 2021 02:07:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233148AbhGWB1Y (ORCPT ); Thu, 22 Jul 2021 21:27:24 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:15050 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbhGWB1X (ORCPT ); Thu, 22 Jul 2021 21:27:23 -0400 Received: from dggeme756-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4GWCLS0HwczZrw3; Fri, 23 Jul 2021 10:04:32 +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; Fri, 23 Jul 2021 10:07:55 +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> <87a6mh82fz.fsf@toke.dk> From: "luwei (O)" Message-ID: <47a14315-6e66-8f2f-6eb1-8ddaab2734a0@huawei.com> Date: Fri, 23 Jul 2021 10:07:55 +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: <87a6mh82fz.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: dggems702-chm.china.huawei.com (10.3.19.179) To dggeme756-chm.china.huawei.com (10.3.19.102) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org OK, I will check that later. 在 2021/7/20 10:50 PM, Toke Høiland-Jørgensen 写道: > "luwei (O)" writes: > >> 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) . > When compiling, the configure script should tell you whether it can find > libbpf. If not, it's probably because you don't have the right header > files installed... > > -Toke > > . -- Best Regards, Lu Wei