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 2981D4625B; Tue, 18 Feb 2025 16:38:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2744C40666; Tue, 18 Feb 2025 16:38:04 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 4DE6D4066F for ; Tue, 18 Feb 2025 16:38:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1739893081; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MBFBEZJvH/OgKecf6MzEcifa4KGlXCGGvggMt1JfA5E=; b=SKJMZzBNcP3V1HPWRG19K62/mXaKsGbXpaQD5noPeOkYDaCMsnwFTO4Sv9poLsckRJbNvd 5kQKCLGDlwc2pXKFahYBN/TuArtVLyVKcbrsIAr9j8S04bbuFeVLBDeb46qydCRNJIVphU sz0RU6emohvJzuZf2IWpyIEPY47tnf4= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-646-Hv1CIu0LPd-BW1O_HN-yAA-1; Tue, 18 Feb 2025 10:37:57 -0500 X-MC-Unique: Hv1CIu0LPd-BW1O_HN-yAA-1 X-Mimecast-MFC-AGG-ID: Hv1CIu0LPd-BW1O_HN-yAA_1739893076 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5E4601800875; Tue, 18 Feb 2025 15:37:56 +0000 (UTC) Received: from dmarchan.lan (unknown [10.44.32.171]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0625A300019F; Tue, 18 Feb 2025 15:37:53 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, bruce.richardson@intel.com, andremue@linux.microsoft.com, John Daley , Hyong Youb Kim Subject: [PATCH v3 04/10] net/enic: remove weak symbols Date: Tue, 18 Feb 2025 16:37:18 +0100 Message-ID: <20250218153730.773836-5-david.marchand@redhat.com> In-Reply-To: <20250218153730.773836-1-david.marchand@redhat.com> References: <20250207083252.3131588-1-david.marchand@redhat.com> <20250218153730.773836-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 2VLEQvf_x13TQJO9kE9fG5ADWTIm7C7-gf3UbIyNPCo_1739893076 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true 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 Rather than use weak symbols, expose stubs symbols when needed. Signed-off-by: David Marchand --- drivers/net/enic/enic_main.c | 8 +++----- drivers/net/enic/meson.build | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index b755b15d92..5ee2ae555d 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -509,15 +509,13 @@ static void enic_prep_wq_for_simple_tx(struct enic *enic, uint16_t queue_idx) } } -/* - * The 'strong' version is in enic_rxtx_vec_avx2.c. This weak version is used - * used when that file is not compiled. - */ -__rte_weak bool +#ifndef ENIC_RXTX_VEC +bool enic_use_vector_rx_handler(__rte_unused struct rte_eth_dev *eth_dev) { return false; } +#endif /* ENIC_RXTX_VEC */ void enic_pick_rx_handler(struct rte_eth_dev *eth_dev) { diff --git a/drivers/net/enic/meson.build b/drivers/net/enic/meson.build index 00f8348348..1e26338350 100644 --- a/drivers/net/enic/meson.build +++ b/drivers/net/enic/meson.build @@ -33,6 +33,7 @@ includes += include_directories('base') # may not. This is to support users who build for the min supported machine # and need to run the binary on newer CPUs too. if dpdk_conf.has('RTE_ARCH_X86_64') + cflags += '-DENIC_RXTX_VEC' enic_avx2_lib = static_library('enic_avx2_lib', 'enic_rxtx_vec_avx2.c', dependencies: [static_rte_ethdev, static_rte_bus_pci], -- 2.48.1