From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 2C43245AE3;
	Tue,  8 Oct 2024 18:53:58 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 1BA5740EE1;
	Tue,  8 Oct 2024 18:53:16 +0200 (CEST)
Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12])
 by mails.dpdk.org (Postfix) with ESMTP id BB93040E24
 for <dev@dpdk.org>; Tue,  8 Oct 2024 18:53:10 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
 t=1728406391; x=1759942391;
 h=from:to:cc:subject:date:message-id:in-reply-to:
 references:mime-version:content-transfer-encoding;
 bh=jbY8jQtM5kr7SCD0OcoJ05lGNLE1QLeOaeCUaVyl39o=;
 b=BVK5Rct9PbRM91ddzvNjczGFDDptxuB7X860D6M3AhfdLRLgMYkLWQT0
 yM12N+U46kLtdbY1FutCjn1nja8/MYTLNon5DEGCUNlJ+cFaT4kh+Dz4Z
 h5t49RaV/zXiinIwA0ogy9XpbYtT1em8S2teF040kCpo8BiJNRfyBNuYQ
 09nZnbLUbiJY4ammXICuFnCfguDgNSnuXP5yaKE2GHH7FbtYcGj52CGRw
 rxbfAapHGFIpD6+yUbY/Kq4m+Cfm/j2rZ+89DxI1sYHKMGJvmBe2Jg0mM
 IjzNbJNByBZJzctOeC0jy1cxgHr+H4mXPnv5/BpKOWjIELM9WtLqNzI6Z g==;
X-CSE-ConnectionGUID: g6CpVQHARkSoH5X/lsSy7A==
X-CSE-MsgGUID: DRskneoBRLiPrAqG8z1ClQ==
X-IronPort-AV: E=McAfee;i="6700,10204,11219"; a="31517016"
X-IronPort-AV: E=Sophos;i="6.11,187,1725346800"; d="scan'208";a="31517016"
Received: from fmviesa003.fm.intel.com ([10.60.135.143])
 by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 08 Oct 2024 09:53:10 -0700
X-CSE-ConnectionGUID: P18GAIQ7TTGR83Sn7NnbtA==
X-CSE-MsgGUID: KVk7crzTQC+NHklDFtzs3g==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.11,187,1725346800"; d="scan'208";a="79883051"
Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25])
 by fmviesa003.fm.intel.com with ESMTP; 08 Oct 2024 09:53:10 -0700
From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: david.marchand@redhat.com,
	Bruce Richardson <bruce.richardson@intel.com>
Subject: [PATCH v3 07/10] net/ice: use global AVX-512 variables
Date: Tue,  8 Oct 2024 17:52:55 +0100
Message-ID: <20241008165258.2802099-8-bruce.richardson@intel.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20241008165258.2802099-1-bruce.richardson@intel.com>
References: <20240930175033.2283861-1-bruce.richardson@intel.com>
 <20241008165258.2802099-1-bruce.richardson@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Replace per-driver checks for AVX-512 with the standard variables from
config/x86.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 drivers/net/ice/meson.build | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/drivers/net/ice/meson.build b/drivers/net/ice/meson.build
index b7f2188e62..1c9dc0cc6d 100644
--- a/drivers/net/ice/meson.build
+++ b/drivers/net/ice/meson.build
@@ -35,20 +35,9 @@ if arch_subdir == 'x86'
             c_args: [cflags, '-mavx2'])
     objs += ice_avx2_lib.extract_objects('ice_rxtx_vec_avx2.c')
 
-    ice_avx512_cpu_support = (
-            cc.get_define('__AVX512F__', args: machine_args) != '' and
-                cc.get_define('__AVX512BW__', args: machine_args) != ''
-    )
-
-    ice_avx512_cc_support = (
-            not machine_args.contains('-mno-avx512f') and
-                cc.has_argument('-mavx512f') and
-                cc.has_argument('-mavx512bw')
-    )
-
-    if ice_avx512_cpu_support == true or ice_avx512_cc_support == true
+    if cc_has_avx512
         cflags += ['-DCC_AVX512_SUPPORT']
-        avx512_args = [cflags, '-mavx512f', '-mavx512bw']
+        avx512_args = cflags + cc_avx512_flags
         if cc.has_argument('-march=skylake-avx512')
             avx512_args += '-march=skylake-avx512'
         endif
-- 
2.43.0