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=-6.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,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 06C6FC4742C for ; Mon, 16 Nov 2020 03:56:38 +0000 (UTC) Received: from vger.kernel.org (unknown [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D1EA20773 for ; Mon, 16 Nov 2020 03:56:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VkwFfq+m" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D1EA20773 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726759AbgKPDza (ORCPT ); Sun, 15 Nov 2020 22:55:30 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:29524 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbgKPDza (ORCPT ); Sun, 15 Nov 2020 22:55:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605498929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bIyX+K3069TyD6kPLH7ed95GPSU1kyK555UH9jTHff8=; b=VkwFfq+mpqDP2HE4WM1gLE32nRcOMoQZ7TRQn/PNj4M/GcmH9UclJCsHk1OCmWCs/99S/f oiwQmf8yN3Bdof31RaYplTL1ohPBFjNSZF7XPRcqQuoE43rz9LomjERVgBvPXvIQFTEWYx lEj4ZXnEASRrm0LmJA5EOh4NvhfdC1Y= Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-128-r9RTHRI1OnSVQAQTu9AvhQ-1; Sun, 15 Nov 2020 22:55:27 -0500 X-MC-Unique: r9RTHRI1OnSVQAQTu9AvhQ-1 Received: by mail-pf1-f198.google.com with SMTP id a24so11180048pfo.3 for ; Sun, 15 Nov 2020 19:55:26 -0800 (PST) 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:references :mime-version:content-disposition:in-reply-to; bh=bIyX+K3069TyD6kPLH7ed95GPSU1kyK555UH9jTHff8=; b=bIaQ8RbfqhBJ1xJ1D03nj9dKmZ/5ldJ6KEs6cZRkIfehDyTBf2H9GGcA38nUMzKdsI j8/Pt5eOJruiRPchyg8r6z2znepAKoq6DvM65Xwc5Bo2V9cLtNe9rnCRbigGBzJOGR3L JcNvVb7FKxwvB89vCmZJek6sRK3hIY6nKOh2YGZ6lemaq/jE32cIf8wu97meuYGfn/kL b6Mc75XzQqOxO+/DV0kPph/8Ky0p8j50hgBIgPARq+Mc7mtBwYhTAD97esVWc5CcO0tR lAigxJthRMGrw6p+d0Mm+st4UFNSTglz/6IIoQpE4SW+2UdS0sgfHUHXwr3noFZ3lAiW kGOg== X-Gm-Message-State: AOAM533euLxaJnKLgO8aXhCoWviT9r9rQztcXdVTwiiawxvlcDyhNiyJ byXkt28Id4OEGDZlJrwivi4QxnJTvPH0qoUB95IE7WQdEe/D9tDJU+L4Uc1ynMnqf8r7qP1R8Up 2K6HSsmPrmUqcgQA= X-Received: by 2002:a62:fc8f:0:b029:18b:823a:13c2 with SMTP id e137-20020a62fc8f0000b029018b823a13c2mr12779133pfh.57.1605498926120; Sun, 15 Nov 2020 19:55:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxU3YC5FlhTRqYFjiD1ghZIezWxTurXey8HolzSwXwjlWGMIUkQhABix+3/0x/8BgqAQK+Nbg== X-Received: by 2002:a62:fc8f:0:b029:18b:823a:13c2 with SMTP id e137-20020a62fc8f0000b029018b823a13c2mr12779117pfh.57.1605498925883; Sun, 15 Nov 2020 19:55:25 -0800 (PST) Received: from dhcp-12-153.nay.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id y3sm14379033pgq.40.2020.11.15.19.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Nov 2020 19:55:25 -0800 (PST) Date: Mon, 16 Nov 2020 11:55:15 +0800 From: Hangbin Liu To: David Ahern Cc: netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCHv4 iproute2-next 2/5] lib: rename bpf.c to bpf_legacy.c Message-ID: <20201116035515.GF2408@dhcp-12-153.nay.redhat.com> References: <20201029151146.3810859-1-haliu@redhat.com> <20201109070802.3638167-1-haliu@redhat.com> <20201109070802.3638167-3-haliu@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Nov 13, 2020 at 08:24:41PM -0700, David Ahern wrote: > On 11/9/20 12:07 AM, Hangbin Liu wrote: > > diff --git a/lib/bpf_glue.c b/lib/bpf_glue.c > > new file mode 100644 > > index 00000000..7626a893 > > --- /dev/null > > +++ b/lib/bpf_glue.c > > ... > > > + > > +int bpf_program_load(enum bpf_prog_type type, const struct bpf_insn *insns, > > + size_t size_insns, const char *license, char *log, > > + size_t size_log) > > +{ > > +#ifdef HAVE_LIBBPF > > + return bpf_load_program(type, insns, size_insns, license, 0, log, size_log); > > +#else > > + return bpf_load_load_dev(type, insns, size_insns, license, 0, log, size_log); > > +#endif > > +} > > + > > Fails to compile: > > $ LIBBPF_FORCE=off ./configure > $ make > ... > /usr/bin/ld: ../lib/libutil.a(bpf_glue.o): in function `bpf_program_load': > bpf_glue.c:(.text+0x13): undefined reference to `bpf_load_load_dev' Opps, sorry for the typo...