From patchwork Thu Sep 21 10:29:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Koikkara Reeny, Shibin" X-Patchwork-Id: 131779 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3A953425FF; Thu, 21 Sep 2023 12:29:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27ED4402EC; Thu, 21 Sep 2023 12:29:51 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 39AC0402B5 for ; Thu, 21 Sep 2023 12:29:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695292189; x=1726828189; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MbZNtIyOJ9BF7DrzuoUOm+5ULMuRVgEDygRBE3bv8aw=; b=ANs2Fzi9QcbvFngBWjzQnnbLdChw4UG/OsDXB/IDOQw0kSYwzhN4P3zL iLZmDgqIm2cAyxKGGyT4MLoNu3/jo8JlEAKtBxcQPdqLJ0Y6lXcbp9i1P 4N5WUQTiZMH7PJWcp8chbWylPBwke2XoCPBaEJprwHnAyRQrxQpT/gmRw Cmgo/G98ibaXEbhpB9VsARh6tHRBuIy5vA5uVAdYqjJKum3xJGE6RNHO+ i1eRAgVLml01f/wHJtc5cjqJZ/iyz1TfS9JX6u0sHGPKZXZx/cltkFjj4 fhJBVmSX2B2Y9IjBGxgTUq2ON3p+bU/phTxTNlkVD0HWEDy2/ANE7X1i/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="365536614" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="365536614" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 03:29:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="747043874" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="747043874" Received: from silpixa00401350.ir.intel.com ([10.55.128.162]) by orsmga002.jf.intel.com with ESMTP; 21 Sep 2023 03:29:46 -0700 From: Shibin Koikkara Reeny To: dev@dpdk.org, ciara.loftus@intel.com, bruce.richardson@intel.com Cc: qi.z.zhang@intel.com, john.mcnamara@intel.com, Shibin Koikkara Reeny Subject: [PATCH] net/af_xdp: pass cflags to appropriate build components Date: Thu, 21 Sep 2023 10:29:23 +0000 Message-Id: <20230921102923.65738-1-shibin.koikkara.reeny@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 Commit 33d66940e9ba ("build: use C11 standard") enforces the C11 standard so some changes need to be made to the af_xdp driver meson build to ensure that the appropriate cflags are passed when checking if certain functions are available in the libbpf/libxdp libraries. Fixes: 33d66940e9ba ("build: use C11 standard") Signed-off-by: Shibin Koikkara Reeny Acked-by: Bruce Richardson --- drivers/net/af_xdp/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/af_xdp/meson.build b/drivers/net/af_xdp/meson.build index 9a8dbb4d49..3319acca65 100644 --- a/drivers/net/af_xdp/meson.build +++ b/drivers/net/af_xdp/meson.build @@ -56,17 +56,17 @@ if build ''' if cc.has_function('xsk_socket__create_shared', prefix : xsk_check_prefix, - dependencies : ext_deps) + dependencies : ext_deps, args: cflags) cflags += ['-DRTE_NET_AF_XDP_SHARED_UMEM'] endif if cc.has_function('bpf_object__next_program', prefix : '#include ', - dependencies : bpf_dep) + dependencies : bpf_dep, args: cflags) cflags += ['-DRTE_NET_AF_XDP_LIBBPF_OBJ_OPEN'] endif if cc.has_function('bpf_xdp_attach', prefix : '#include ', - dependencies : bpf_dep) + dependencies : bpf_dep, args: cflags) cflags += ['-DRTE_NET_AF_XDP_LIBBPF_XDP_ATTACH'] endif endif