From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6EAE5A00BE; Thu, 10 Mar 2022 19:55:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01B6E4113F; Thu, 10 Mar 2022 19:55:05 +0100 (CET) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mails.dpdk.org (Postfix) with ESMTP id E75C84113E for ; Thu, 10 Mar 2022 19:55:03 +0100 (CET) Received: by mail-pj1-f45.google.com with SMTP id z12-20020a17090ad78c00b001bf022b69d6so6075243pju.2 for ; Thu, 10 Mar 2022 10:55:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bUAqPQreb9PGwuRt7Ex1fGgLXs82UGh/8OsweHOYO1Y=; b=5O/695m4i8m55uejz5cNnxk8QKw3M0eP7PkbFc3dX7xJi1XVm7wnKXMxsQNyuL+dMD bT195yhJDmY92bO6F/Lw95Ft55eeWN0UEMtAScu2GmeclAE6H+fCvwDZBIrXFlvSuPaR 0HLusR8RrJ3sX3eGXn5zH+gW30Eyfus1ztEkhgluobzdypzGZu/8sKc9gYZBdlcbt7nx Ryn7mpRtEpTb/GrsSivZcqEl2dspzM9SSrBd3ycxvyC385IALm9Xt+Jf5hrDYcIXW0X/ ri9zBfrXJfOI2F2GMhK0U5a3+dt2FwRprbWU1SXPS7LdzlaaGqh/mjwbnQw/4Rc0tKv2 sULA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bUAqPQreb9PGwuRt7Ex1fGgLXs82UGh/8OsweHOYO1Y=; b=VZ3mpM5+J3hgGks1+mP0e6nbBWmZAwVFbv/LRwbNKfgC3vlxKiPQYk83U9B3gdm2CZ CBh1xoQTEXBebsOXNT3rZI9mR/vzoTE3QvW4rlWnbgr2txspLmsQYuVVzr4215ExbL/d Xqtd24nDtYd5s31aeWtobkzJV93slY/1hF7SRK/MJs/76CARsVYWr6A396H4TbmpGenS 7SyOB2NfNQba/o7oZa/yiQ1xZT5ZJrsnSCYZc5/P3SvVAIXXx2ReuOadEDuoLDWvPIIP mSaaCc0H7QksXdk3z9+rw4GckisQPFlegaPwhHLsdIwFWfEcHFNRImLoyZ/rb1bOZwv8 vkMg== X-Gm-Message-State: AOAM530a0eTbuPCS0elUkBxmGWdQh0uLnP9csh+upz3v/WoSgO04hGb2 O4L+FKKr2XWRM8PFhy++HCm1zA== X-Google-Smtp-Source: ABdhPJyBq1SZD2C7wYBpuFN/R3CDXipgP2XK3MlClpzL7rp2XGmfuh7DUy3Cl0wjH+Pnb9YVwRKv+Q== X-Received: by 2002:a17:902:c94a:b0:151:8a66:ee8d with SMTP id i10-20020a170902c94a00b001518a66ee8dmr6466888pla.163.1646938503087; Thu, 10 Mar 2022 10:55:03 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id q8-20020aa78428000000b004f7281cda23sm7588642pfn.201.2022.03.10.10.55.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 10:55:02 -0800 (PST) Date: Thu, 10 Mar 2022 10:54:58 -0800 From: Stephen Hemminger To: David Marchand Cc: dev@dpdk.org, blo@iol.unh.edu, stable@dpdk.org, Konstantin Ananyev , Ferruh Yigit Subject: Re: [PATCH] bpf: fix build with some libpcap version on FreeBSD Message-ID: <20220310105458.24ee6d94@hermes.local> In-Reply-To: <20220310183040.31724-1-david.marchand@redhat.com> References: <20220310183040.31724-1-david.marchand@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, 10 Mar 2022 19:30:40 +0100 David Marchand wrote: > This is something caught in UNH FreeBSD env. > > For some reason [1], the pcap/bpf.h header started to define _BPF_H_. > > It happens that the bpf_impl.h internal DPDK header uses this define as > an internal guard. > This triggers a build failure in bpf_convert.c which can't find > RTE_BPF_LOG macro. > > Fix the include guard to use the filename and remove _. > > 1: https://github.com/the-tcpdump-group/libpcap/pull/1074 > > Fixes: 94972f35a02e ("bpf: add BPF loading and execution framework") > Cc: stable@dpdk.org > > Signed-off-by: David Marchand Acked-by: Stephen Hemminger