From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by dpdk.org (Postfix) with ESMTP id CD6D21AFF for ; Tue, 19 Jun 2018 09:58:36 +0200 (CEST) Received: by mail-lf0-f66.google.com with SMTP id p23-v6so16970849lfh.11 for ; Tue, 19 Jun 2018 00:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=H+AdqFI/ZvpO3cc4N0QMLvjA7ckP0+7v79HM+l8rwYI=; b=RMlAqRyP0WuE2LOHdQN1svt/bJYOjNxpYDQ5WcE0ZiPTycH23IKUusLrtczHUD0MZv eNMfk7+splgQgxYYXM4AXAq4GDoHj98mWrlZIsj9WAjDjsY9EhqEnPETUdBD0xvCN/cB YerdERwsP//mzU3BACuP/hivbXkn50OW4vYWmvGfe2vhf+Y74v9EM0ZxCEQvgD/FERgL TSraivmFcaWaE5fNDPXPcQeML0XIbVBf3yvWPvo+fczfWyYa1lS7OSIO041aH4QLRIe+ 1QEwLKckuzIDeYoK4ic/msbynIpu83oIHPYq7pC917zJ5ourlbpQBAs7eGU0pc5Gt8+p HDmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=H+AdqFI/ZvpO3cc4N0QMLvjA7ckP0+7v79HM+l8rwYI=; b=Z+uXmB1z9Gwet8EaUbYJTW8aJkbl6D+EKwY/bkHJ8eBsaUNul+nIV6hsnQb8xB//Lg obRcnhXNTL5jnOYaEvm1ukiybb26uwyrkG2dlCMclxhHB2CwpKL+nsO1tACm7TE6xY0K ag8IJPIBNr/UI5Z+x0KUQIJMPn4ILkO0wTLoYP0AG57Fo2dEJuyR7W/tT9WxBUsUKf39 znC7Sp689MI5ip6ikj4/DK/miS7yWlGpTvYh95c67FhieTEHr0SxCWmqN7vXwHz8rXH/ FEpXVMUIxBiKg3JBkrh3nk5WArMXG/V47dsC1hvn22LRKKhz1hdUQZTEUqR2S1nTcNR6 QQGg== X-Gm-Message-State: APt69E0WOKXdzax0FQx4/sr9sXQOtZTOSYuekZAn4PvwrhrsyWLqwANZ MJuxegR+oN/agea8tS0V3+7Wtg== X-Google-Smtp-Source: ADUXVKKF9NKciWFCdPRxDcoztxFfH2Vj6zGrwARPtsGl8P4ek1B4HFcX2QUhRa8yuwpDuZ0Jh7uFfQ== X-Received: by 2002:a2e:4442:: with SMTP id r63-v6mr11090216lja.89.1529395116390; Tue, 19 Jun 2018 00:58:36 -0700 (PDT) Received: from mkPC.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id i14-v6sm3083112ljg.37.2018.06.19.00.58.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 00:58:35 -0700 (PDT) From: Michal Krawczyk To: thomas@monjalon.net, Marcin Wojtas , Michal Krawczyk , Guy Tzalik , Evgeny Schemeilin Cc: dev@dpdk.org, matua@amazon.com Date: Tue, 19 Jun 2018 09:58:20 +0200 Message-Id: <20180619075820.10639-1-mk@semihalf.com> X-Mailer: git-send-email 2.14.1 Subject: [dpdk-dev] [PATCH] net/ena: fix FreeBSD build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2018 07:58:37 -0000 The FreeBSD define was removed from platform file when HAL was upgraded to newer version. In file included from dpdk/drivers/net/ena/ena_ethdev.c:45: from dpdk/drivers/net/ena/ena_ethdev.h:42: from dpdk/drivers/net/ena/base/ena_com.h:37: dpdk/drivers/net/ena/base/ena_plat.h:48:2: error: "Invalid platform" Fixes: 3adcba9a8987 ("net/ena: update HAL to the newer version") Cc: mk@semihalf.com Signed-off-by: Michal Krawczyk --- drivers/net/ena/base/ena_plat.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ena/base/ena_plat.h b/drivers/net/ena/base/ena_plat.h index 278175f39..f829936b2 100644 --- a/drivers/net/ena/base/ena_plat.h +++ b/drivers/net/ena/base/ena_plat.h @@ -42,6 +42,12 @@ #else #include "ena_plat_dpdk.h" #endif +#elif defined(__FreeBSD__) +#if defined(_KERNEL) +#include "ena_plat_fbsd.h" +#else +#include "ena_plat_dpdk.h" +#endif #elif defined(_WIN32) #include "ena_plat_windows.h" #else -- 2.14.1