From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3703CC44507 for ; Fri, 17 Jul 2026 09:30:36 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9586440E01; Fri, 17 Jul 2026 11:30:35 +0200 (CEST) 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 9FB9540A7F for ; Fri, 17 Jul 2026 11:30:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1784280633; 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=OH122P4qhmjzr+3+4Ap0RAezVTboqpy7mD9sVlzJ8sQ=; b=hVQqxomysx35BGSxrAN9HQppiR3SRptPSPbNPgs2v6IfotnfPAX4QsSL1nT6x/Jd+2dSf/ tMMl6JmN2r2SkG6bYoZdxqvPwp+00E5YQiA1QPuaqfbC66/pMJIRuYH2c5FmhJHJTbeQ0/ EP5q01r7/DOUbibHL4GwVlMBxLeWL/E= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-248-VEBNKj07Nkyr11bsds9vQQ-1; Fri, 17 Jul 2026 05:30:26 -0400 X-MC-Unique: VEBNKj07Nkyr11bsds9vQQ-1 X-Mimecast-MFC-AGG-ID: VEBNKj07Nkyr11bsds9vQQ_1784280625 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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 522111945CB5; Fri, 17 Jul 2026 09:30:25 +0000 (UTC) Received: from dmarchan.lan (unknown [10.44.48.202]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3506430040BF; Fri, 17 Jul 2026 09:30:22 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Yipeng Wang , Sameh Gobriel , Bruce Richardson , Vladimir Medvedkin , Stephen Hemminger Subject: [PATCH 03/10] hash: fix GFNI stubs export Date: Fri, 17 Jul 2026 11:29:58 +0200 Message-ID: <20260717093006.229370-4-david.marchand@redhat.com> In-Reply-To: <20260717093006.229370-1-david.marchand@redhat.com> References: <20260717093006.229370-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: bNeinjnl_TayaSDoeb4itMlZAaI0y2LDZNFZu-fG8fI_1784280625 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 Internal symbols *can not* be called as part of public ABI. The GFNI stubs must be exported so that an application may call them through the (inlined) GFNI API without requiring ALLOW_INTERNAL_API. Fixes: 944a03a5cfc1 ("hash: fix MSVC link on GFNI stubs") Signed-off-by: David Marchand --- lib/hash/rte_thash_gfni.c | 4 ++-- lib/hash/rte_thash_gfni.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/hash/rte_thash_gfni.c b/lib/hash/rte_thash_gfni.c index 2003c7b3db..ae55f7f711 100644 --- a/lib/hash/rte_thash_gfni.c +++ b/lib/hash/rte_thash_gfni.c @@ -13,7 +13,7 @@ RTE_LOG_REGISTER_SUFFIX(hash_gfni_logtype, gfni, INFO); #define HASH_LOG(level, ...) \ RTE_LOG_LINE(level, HASH, "" __VA_ARGS__) -RTE_EXPORT_INTERNAL_SYMBOL(rte_thash_gfni_stub) +RTE_EXPORT_SYMBOL(rte_thash_gfni_stub) uint32_t rte_thash_gfni_stub(const uint64_t *mtrx __rte_unused, const uint8_t *key __rte_unused, int len __rte_unused) @@ -29,7 +29,7 @@ rte_thash_gfni_stub(const uint64_t *mtrx __rte_unused, return 0; } -RTE_EXPORT_INTERNAL_SYMBOL(rte_thash_gfni_bulk_stub) +RTE_EXPORT_SYMBOL(rte_thash_gfni_bulk_stub) void rte_thash_gfni_bulk_stub(const uint64_t *mtrx __rte_unused, int len __rte_unused, uint8_t *tuple[] __rte_unused, diff --git a/lib/hash/rte_thash_gfni.h b/lib/hash/rte_thash_gfni.h index e82378933c..8a72fa9ec6 100644 --- a/lib/hash/rte_thash_gfni.h +++ b/lib/hash/rte_thash_gfni.h @@ -22,11 +22,9 @@ extern "C" { * @internal * Stubs only used when GFNI is not available. */ -__rte_internal uint32_t rte_thash_gfni_stub(const uint64_t *mtrx, const uint8_t *key, int len); -__rte_internal void rte_thash_gfni_bulk_stub(const uint64_t *mtrx, int len, uint8_t *tuple[], uint32_t val[], uint32_t num); -- 2.54.0