From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 691F8606A32C for ; Sun, 29 Nov 2026 20:51:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=Gp/yyINf Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 893C640A75; Sun, 29 Nov 2026 21:50:24 +0100 (CET) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTPS id 9A96C406B6 for ; Sun, 29 Nov 2026 21:50:21 +0100 (CET) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-cd69954c755so6995985a12.3 for ; Sun, 29 Nov 2026 12:50:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1795985420; x=1796590220; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=8evM4lTg3s5/+6Yqf+qkXufPYM4BmbL6fyqmq8tLvKM=; b=Gp/yyINfSDkiUi5TW55lIHlmMw2P/eTnQNb9G/O9GxRnyIL6Lo9WruZGduN5MjGUk1 zIIHIenGpr8VeyF88UDGggQqBaUWvOtlT+xYbZXE9PHJC8KAVkGv51uOPAyp+EGvDq5X kS/9l3kwq8tOluFJPVDEPm0Fosv0kAAjn4gAZjeaJacpHObImAPdipemWOtGX+WsOz/a iv6wd874X7BQ5Xrg9YoBIW++gzgIatB6FUvyfzFD0+wYZ95AZlUKNXeTpc/rk8OQf/2h iMaMU+3Yf3kYfqT19jocR1MhEqvF6gPbIq0y7M6pR7aRDymwZLPGqAVR5vE/VuYuob1g TJoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795985420; x=1796590220; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=8evM4lTg3s5/+6Yqf+qkXufPYM4BmbL6fyqmq8tLvKM=; b=IBOEvSpHxTJlXJXnyv5ttFLEA9GT2ZnMym7Ka0Q4OEspjqUnig9VQoKrA9Kc684Mm8 nuIZS8Y/U+tMV49OwQPtTbL8NLSG1cniYZ/TYEomohkDdRiN4V3lSWBSaAH7b5p8hJ9O IpKOLXXNQy95pdFuFsE62nszj1Mpltnof5EAmc+R20M96wCHjGYgCowAtU8qjctY3Nvw uEVcFDGuOiwSpTBCNbO8EtkgYVafoKWujwR79azeCzH8Pdk+uottG3DXT2X0z7nGpgif jNKOx3g3yQMbz/3FAVw0YN7bncCzrEpuXsfXGmiAx/TJ3wXYx20bfUSZOwq0AwsWfL0R rO6A== X-Gm-Message-State: APuU4Z+0GKrXPG3u+mnf6LURx6OwzHKPJWBsTJxSId2K2dPzfg3Qo0uK iMXg4FX7Fu5l67kUH2bNoSvTyyZ5vqajcpgz7UD1UcHgbAStttjH6Hec1MHS5Srm3KCbNtawOPb kJE5U X-Gm-Gg: AZFdTZdXDxybAlYSeqbf0Fq8iJcA+rf0tVeNhI/abWwbtv6YuKajISBkQSEjyWkGYpY ydDo71Xyjxk2MJxYvU/RbfJ7sn5MklLRRJhCylTpBefwe5tG+oW8I5Sy92ueksebQZg7AoVhdFn iwbZfrVOlT/P5sVFdPUkAAKAyJDOr0QA5YIqdJE9sq6tdxbiTxiyP1cGuKuWGL12Wt6hQOE4wkG vj+pE32RbGJuMCsiubTHfRCTslcic+4UotKTwWHpope2ISOEd/50nfrgbZJnUIkQlbUGM6fYKMB oo9rZT1RwddRlvD3ZhPOdt45Pxej2d5FbJQUUPSeDnA4JxSLTFxsxT/2JpY8svdHTFd6b46Xm5w 7JBurghLtu8rr1bh33JHtAgT++Fv1cT0luGzwmGVy7ReawiDKTtC9f//juPsxPxVEl8a2d9Nr1N YRjQppxBPm4cfiy07zBVlsAoMowkZAtS79m0IWosgANRCD/lyG6AWv1rufuKD+31vlPCgkE3ZHj 5wytnh7xAnlkdc9zI1DZAji3Gr01oRq8Ims/xoLPuWx4vCq+jlGSbMFv7K+vV5LrQv0HDesP0Mf hgphKSgqcEe91vLvj1LR7eaRw1HRoiccdgAXAYknlWTPhFweKrD+rvzRMH55C6onKA73 X-Received: by 2002:a17:90b:2e4b:b0:3b3:886d:621 with SMTP id 98e67ed59e1d1-3b41c9e52bamr30817015a91.34.1795985420023; Sun, 29 Nov 2026 12:50:20 -0800 (PST) Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b50234fb25sm10383968a91.2.2026.11.29.12.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 12:50:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anatoly Burakov Subject: [PATCH 08/45] eal/linux: do not export internal VFIO helpers Date: Sun, 29 Nov 2026 12:48:53 -0800 Message-ID: <20261129205006.1440292-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261129205006.1440292-1-stephen@networkplumber.org> References: <20261129205006.1440292-1-stephen@networkplumber.org> X-Archived-By: 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 List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 dev_vfio_cleanup(), dev_vfio_init_mem() and dev_vfio_get_container_fd() are called only from EAL itself, from eal.c and eal_vfio_mp_sync.c. The VFIO interface used by buses and drivers is the dev_vfio_container_* and dev_vfio_enable family, which stays exported. Signed-off-by: Stephen Hemminger --- lib/eal/linux/eal_vfio.c | 3 --- lib/eal/linux/include/dev_vfio.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/lib/eal/linux/eal_vfio.c b/lib/eal/linux/eal_vfio.c index fdf500cd5b..8f832ff1e4 100644 --- a/lib/eal/linux/eal_vfio.c +++ b/lib/eal/linux/eal_vfio.c @@ -1362,7 +1362,6 @@ dev_vfio_module_is_loaded(enum dev_vfio_module module) return vfio_check_module(module) > 0; } -RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_init_mem) int dev_vfio_init_mem(void) { @@ -1435,7 +1434,6 @@ dev_vfio_get_device_info(int vfio_dev_fd, struct vfio_device_info *device_info) return 0; } -RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_get_container_fd) int dev_vfio_get_container_fd(void) { @@ -1887,7 +1885,6 @@ dev_vfio_get_iova_mode(void) return vfio_global_cfg.iova_mode; } -RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_cleanup) void dev_vfio_cleanup(void) { diff --git a/lib/eal/linux/include/dev_vfio.h b/lib/eal/linux/include/dev_vfio.h index 57c5894679..c018079ba7 100644 --- a/lib/eal/linux/include/dev_vfio.h +++ b/lib/eal/linux/include/dev_vfio.h @@ -156,7 +156,6 @@ int dev_vfio_enable(void); * @internal * Cleanup VFIO resources. */ -__rte_internal void dev_vfio_cleanup(void); /** @@ -168,7 +167,6 @@ void dev_vfio_cleanup(void); * 0 on success. * <0 on failure. */ -__rte_internal int dev_vfio_init_mem(void); /** @@ -305,7 +303,6 @@ dev_vfio_get_device_info(int vfio_dev_fd, struct vfio_device_info *device_info); * - ENXIO - VFIO support not initialized. * - ENOTSUP - Unsupported VFIO mode. */ -__rte_internal int dev_vfio_get_container_fd(void); -- 2.53.0