From patchwork Tue Mar 12 16:52:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 768 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 4839043C93; Tue, 12 Mar 2024 17:52:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 118D540ED9; Tue, 12 Mar 2024 17:52:43 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E2D7E402D8 for ; Tue, 12 Mar 2024 17:52:41 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 512DD20B74C0; Tue, 12 Mar 2024 09:52:41 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 512DD20B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1710262361; bh=HjKwPKSbmjWhZIhTHZdyoqn9I0BZauM5yItGJh6LdXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VLDUDI6KVk4HjGmkAJLCnGAYDE7rKZ8hbx9kMLPAxQdz27aOqrJ+RUQpFy1LPF66D QfyWNt1NDzc7FRyBYUgiFOYUfzRuCvr+huU3Q8oeQP6BKZuNOfBnfMeuYJODk1FwMI IQz7kCq4ASK/Ew6w8XcNS6YEEpt+9hjiDoYB2OjA= From: Tyler Retzlaff To: dev@dpdk.org Cc: Dmitry Kozlyuk , Pallavi Kadam , Tyler Retzlaff Subject: [PATCH v5 0/2] eal: initialize shared plugins on Windows Date: Tue, 12 Mar 2024 09:52:37 -0700 Message-Id: <1710262359-14217-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1701976851-17275-1-git-send-email-roretzla@linux.microsoft.com> References: <1701976851-17275-1-git-send-email-roretzla@linux.microsoft.com> 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 When EAL is built with MSVC it is possible to dynamically load plugins on Windows. Hook eal_plugins_init into rte_eal_init if built with MSVC and provide code to load plugins on Windows. Note: For patch 2/2 no verify permissions is provided as it would be redundant with the check performed by LoadLibrary. CI warning also expected DWORD is not uint64_t on Windows. v5: * rebase series * use RTE_LOG_LINE instead of RTE_LOG * update commit subject on patch 1/2 as per maintainer suggestion v4: * include winipfamily.h header for WINAPI_FAMILY macros and provide definition for PHONE_APP if mingw winipfamily.h doesn't supply it v3: * revert use of PRIu32 from previous patch just use %lu to make unsigned long format happy v2: * revert unintended / unrelated whitespace change * include inttypes.h for use of PRIu32 in log format string Tyler Retzlaff (2): eal/windows: make dirent.h shim compatible with MinGW eal: initialize shared plugins on Windows lib/eal/common/eal_common_options.c | 90 ++++++++++++++++++++++++++++++------- lib/eal/windows/eal.c | 8 ++++ lib/eal/windows/include/dirent.h | 6 +++ 3 files changed, 89 insertions(+), 15 deletions(-)