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 A314A606A31C for ; Sun, 29 Nov 2026 20:54:37 +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=BwODLP5p Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5931640EF0; Sun, 29 Nov 2026 21:51:08 +0100 (CET) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTPS id 0A3D240EE6 for ; Sun, 29 Nov 2026 21:51:06 +0100 (CET) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-3b439e37813so4985909a91.3 for ; Sun, 29 Nov 2026 12:51:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1795985464; x=1796590264; 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=NFINtwADcgPdSPe4mVk0R4zurOFxa+OIkp/CNj8F0rM=; b=BwODLP5pXS7VmVmeGLd6AyWQdJq3qlqLGCNgjVK/4rwggQkws4u5gbVqkOAqmr/AJj xBvnL3bKH12bwbGh7RywIirWkGJGTKq07Vx9wt+IXR1tphvzw9iJC21xZMCZn0Rf7B89 RBAjV0yLh+u1x/mZTQ+gcFdHL0Zgg7Rgq1jV4s26s/YVopd0sGC2qLcRasecG72WRKrr jS04hex55DmGuuvyXKzhGdkyHgirZB1HSO5WkpQEZKwRLNxZldb5gzGn1mY7F6n+xPMf +aCkQCDnEJjCMMtvWrZ2Y7UkvXRW/h7dfIMxzZPoyKnsSVFqlfRCvw/TkutxMFXbtDVt UmMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795985464; x=1796590264; 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=NFINtwADcgPdSPe4mVk0R4zurOFxa+OIkp/CNj8F0rM=; b=lQMXSA1iYVL+GA6tX9kF7ChW+E810Qzxl+2aeQtBRkKaN8FWBGbYYNJapY0bBYfTgl XJwyzbhYSbxB/GKhUgYYs2UiPCxF0IAG2C4lkSNCo+LRDOT5Ww7jF5q2VGCVGTyXduZ/ tEYVEmQt6Fhwul9g8IN6cbD3FbDrupTNCcCVvpJqyf/fv7WYTOgBmmp0k3D5EIU8Ovn0 2jYYKzAoN1puhjfz+6g4/siH5cxC2ZqFnBibr8Psrkrii1wc8tX+ob4MT+aB8kFvlYJX Mg3tinLD9XnEu6lgWyhroNdbajN+lcwwsLDp2s/DtoivOh2TBjYSRHtJPbJcdVr7iQ/e FQqA== X-Gm-Message-State: APuU4Z+z46MMiIKC9pYhMnfB35fJRAR4xl/qYYfe+kAXejyFjvWalzCH SDlhfDc65EFTkCqxs1GEEClqRv01fzTovGcqaI4o1I3ceZo+tAEjodMDNYe0cZY5x/7VkJMlCJz ptClqcwg= X-Gm-Gg: AZFdTZct2KvjGWlOgDTfqLc5kz9T0gFqYUaJLJruCJPO8FfQDyO8eUWuh4IJrNEatTl mNF74vgSbjWd5IxPZM6OkC0zZIlqg38xylUSTnHj1TXS47rYZSMonXQzNmBlHImOPJ6yJC4amT8 muWIKgYobCSqJa4yJ0HJ0p54bHoVYqeXgmVsU+pG4nfVGdIxlcEDLwoBcvYD2Dw0+lpksPk9hyq p7tGXwCuPw/1aM10LGBnSvHCt7hKisHrowt/wv5QUiZTm7Iy2lJdP0ZwLhrohT1nQm/CLlqFfT3 +gv4AiFvZwVA2AD+X++03caHnnFXHGiLNCBlhOOshplRaiIJA+BQUs1HeQIPUbDFAXZVj1iUcXZ zFjhxZLHcHdTc0K5BygqCbIjCtsJdbNqSbjKmKfQ86kDCwKhKc3zUw8UstEwZ6MgiZk9J6q8gMi QkboxypjOCQpSE+qTbTxGXbB0hIWawsEgDHvA+K3CP8UvY5oxEyJcjhoACa+A1VsCXEgP2JsuCU Oo6r/LoSv2GkfI0RmRTSxeCN8d+UTit99ctEBCoUHvjZ6tBeTonoawQ7xRk5pc6vKE49zQJlFKK PLTaIx0Zls04NYPK65E8zW11w2VoRLNLWPl1YOmBoUWtjm8t9S+tTRLPA/7NyjuqmpGvfxs6gkK uhIadt5PX+kh3vw== X-Received: by 2002:a17:90b:2792:b0:3ac:4e18:238c with SMTP id 98e67ed59e1d1-3b41cb0c476mr27165982a91.49.1795985464505; Sun, 29 Nov 2026 12:51:04 -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.51.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 12:51:04 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Harman Kalra Subject: [PATCH 37/45] eal: remove unused Windows interrupt handle accessors Date: Sun, 29 Nov 2026 12:49:22 -0800 Message-ID: <20261129205006.1440292-38-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 rte_intr_instance_windows_handle_get() and the matching set function have no caller, on Windows or anywhere else. Remove them and their declarations. With both gone, nothing reads or writes the windows_handle member of struct rte_intr_handle, so it goes too and the anonymous union that held it collapses to the two file descriptors. Only the Linux build is compile tested here, but the functions are built from common code and nothing under lib/eal/windows or in any driver references them. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_interrupts.c | 21 ----------------- lib/eal/common/eal_interrupts.h | 9 ++------ lib/eal/include/rte_interrupts.h | 31 -------------------------- 3 files changed, 2 insertions(+), 59 deletions(-) diff --git a/lib/eal/common/eal_common_interrupts.c b/lib/eal/common/eal_common_interrupts.c index aa3ff0da50..4cad724f8d 100644 --- a/lib/eal/common/eal_common_interrupts.c +++ b/lib/eal/common/eal_common_interrupts.c @@ -519,24 +519,3 @@ void rte_intr_vec_list_free(struct rte_intr_handle *intr_handle) intr_handle->intr_vec = NULL; intr_handle->vec_list_size = 0; } - -void *rte_intr_instance_windows_handle_get(struct rte_intr_handle *intr_handle) -{ - CHECK_VALID_INTR_HANDLE(intr_handle); - - return intr_handle->windows_handle; -fail: - return NULL; -} - -int rte_intr_instance_windows_handle_set(struct rte_intr_handle *intr_handle, - void *windows_handle) -{ - CHECK_VALID_INTR_HANDLE(intr_handle); - - intr_handle->windows_handle = windows_handle; - - return 0; -fail: - return -rte_errno; -} diff --git a/lib/eal/common/eal_interrupts.h b/lib/eal/common/eal_interrupts.h index c9d674471f..d1760946d1 100644 --- a/lib/eal/common/eal_interrupts.h +++ b/lib/eal/common/eal_interrupts.h @@ -6,13 +6,8 @@ #define EAL_INTERRUPTS_H struct rte_intr_handle { - union { - struct { - int dev_fd; /**< VFIO/UIO cfg device file descriptor */ - int fd; /**< interrupt event file descriptor */ - }; - void *windows_handle; /**< device driver handle */ - }; + int dev_fd; /**< VFIO/UIO cfg device file descriptor */ + int fd; /**< interrupt event file descriptor */ uint32_t alloc_flags; /**< flags passed at allocation */ enum rte_intr_handle_type type; /**< handle type */ uint32_t max_intr; /**< max interrupt requested */ diff --git a/lib/eal/include/rte_interrupts.h b/lib/eal/include/rte_interrupts.h index a0b83c99d1..34c6044075 100644 --- a/lib/eal/include/rte_interrupts.h +++ b/lib/eal/include/rte_interrupts.h @@ -767,37 +767,6 @@ __rte_internal int rte_intr_event_list_update(struct rte_intr_handle *intr_handle, int size); -/** - * @internal - * Returns the Windows handle of the given interrupt instance. - * - * @param intr_handle - * pointer to the interrupt handle. - * - * @return - * - On success, Windows handle. - * - On failure, NULL. - */ -void * -rte_intr_instance_windows_handle_get(struct rte_intr_handle *intr_handle); - -/** - * @internal - * Set the Windows handle for the given interrupt instance. - * - * @param intr_handle - * pointer to the interrupt handle. - * @param windows_handle - * Windows handle to be set. - * - * @return - * - On success, zero - * - On failure, a negative value and rte_errno is set. - */ -int -rte_intr_instance_windows_handle_set(struct rte_intr_handle *intr_handle, - void *windows_handle); - #ifdef __cplusplus } #endif -- 2.53.0