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 E6D87A00C2 for ; 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 D386341144; Thu, 10 Mar 2022 19:55:05 +0100 (CET) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id 138EB4113F for ; Thu, 10 Mar 2022 19:55:03 +0100 (CET) Received: by mail-pj1-f43.google.com with SMTP id k5-20020a17090a3cc500b001befa0d3102so6838523pjd.1 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=iKzin/eimX73ZwQgO9teO3LyWy/mfs2aFhrlpfFYbMxYUxfgWhZz5SJk7chnKsuATx 6r1obfNN+fnJmQdJGapo+RH2u4eY13keirBsdzq/JSCzZfJ8bNqVb9+SG43jcqH+uXR1 kGKwKg6KnmKZm1c8BI042chkG+HR0wOTk/NFrcfrrZgaWd8LKF9St7O9q/CWs3x2Dok1 DJqSBvBsywuT8mm47bjxxEZ5Iuajo8QE0WoTFODzorPzL+v3MVEwrfjkoinmyKokd3am yLNC7tOkjGPH8nJOzp55e7tM7GOaXpGvVJHC969wUfcMIqanF4Oa4DNY5fFpGZickN/0 Pqsg== X-Gm-Message-State: AOAM5300RcEhSIV/wWQZ9shkIYz6wsjYBC5DY+sW002zbfe2mj5/XDCX x93QJf0SKbUPiuksE9t3tk/akg== 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: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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