From patchwork Thu Oct 25 17:46:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 47431 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 082BC5F3B; Thu, 25 Oct 2018 19:46:37 +0200 (CEST) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 51D805F13 for ; Thu, 25 Oct 2018 19:46:36 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id n10-v6so3616820pgv.10 for ; Thu, 25 Oct 2018 10:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6qqTlqYL2IhnLJvxSoKY+eWdltLoX4BcFsOATyDaFME=; b=cfGnrtugm9+xWkXNAwglz15wj6qx/vlahoQDp8Z0A/rfxxmqy51B721xMUgoI9PQeS SCBjOPqt9gtX55zo5IQdcAOyncf7CVOjw6fPi03lfb4zSJb+8l0VOCzqpYK/Je7dOBBe i5RsCHHiduKNvkr48ljU4CSR+TQ287rO8L+cXT0fcFrQVNLNNV6VwA6XPzoOp8QTTP0h D6KeXQX+XkLefFwByfrq/d1OXkTAtUS9SR+8WEpDpJ14MsXiot+FIgH2bWEgJedUITqn OS4w9Clu+6pyPDP9/rbdd4my8N0w7I5oM1ze49hQ0jG8A6RrL59Jj/qFcdJ6NLnwOsJK dZiQ== 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:mime-version :content-transfer-encoding; bh=6qqTlqYL2IhnLJvxSoKY+eWdltLoX4BcFsOATyDaFME=; b=ZUj0nqXPo9GETPsDfoskFlvxZm8DgRSD1iwI1Qc0kGCgRrednpqndH2HXOWckc6VHI Mjze76BbiCG4VXGKl6RpQaW00AO4yc8/JwMUECU0SCDuS/b634Jh+INEuh1YRgN5BwnV UXudOjmQOmQsIVns6T4G1MF0goj07UR6wohcNgzHVvkX38IeFZILSx836dqVARoxekCU St6QkylXTt9w8TQXLcgzrtNOUEYdSsDn2+lffbAXv99+NcDXwhKmto7QtQucnqC+nWRx AvlPzJOKy34r9QAR3oEgQNpFNKtMiFyUjp5iR3Ax4gLlj61HMa/mQ8fLcsCe5lZ+Mh4n yECA== X-Gm-Message-State: AGRZ1gKszz6mAw3A0kedRrttiA6AshAkv95rDw6Bv4ldBGUW92SybY/S OSqlQEPjsbUXx6oiSptjO+abcQ== X-Google-Smtp-Source: AJdET5fjXVtWnFAMoH72rwAJpMeI96LioBYGDcp/gs/onQY/UZZ9lnhIYr77oFmGqKWk2PDyo82mvA== X-Received: by 2002:a62:f909:: with SMTP id o9-v6mr192196pfh.160.1540489595201; Thu, 25 Oct 2018 10:46:35 -0700 (PDT) Received: from xeon-e3.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id k132-v6sm14748203pga.28.2018.10.25.10.46.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 10:46:34 -0700 (PDT) From: Stephen Hemminger To: adrien.mazarguil@6wind.com Cc: dev@dpdk.org, Stephen Hemminger Date: Thu, 25 Oct 2018 10:46:26 -0700 Message-Id: <20181025174626.9725-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] mlx5: use pkg-config to handle SUSE libmnl 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SUSE decided to install the libmnl include file in a non-standard place: /usr/include/libmnl/libmnl/libmnl.h This was probably a mistake by the SUSE package maintainer, but hard to get fixed. Workaround the problem by pkg-config to find the necessary include directive for libmnl. Fixes: 20b71e92ef8e ("net/mlx5: lay groundwork for switch offloads") Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- drivers/net/mlx5/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index 1e9c0b42ac16..3bde28f20ad4 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -51,6 +51,7 @@ CFLAGS += -D_DEFAULT_SOURCE CFLAGS += -D_XOPEN_SOURCE=600 CFLAGS += $(WERROR_FLAGS) CFLAGS += -Wno-strict-prototypes +CFLAGS += $(pkg-config -cflags libmnl) ifeq ($(CONFIG_RTE_LIBRTE_MLX5_DLOPEN_DEPS),y) CFLAGS += -DMLX5_GLUE='"$(LIB_GLUE)"' CFLAGS += -DMLX5_GLUE_VERSION='"$(LIB_GLUE_VERSION)"' @@ -59,7 +60,7 @@ LDLIBS += -ldl else LDLIBS += -libverbs -lmlx5 endif -LDLIBS += -lmnl +LDLIBS += $(pkg-config -libs libmnl) LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs LDLIBS += -lrte_bus_pci