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 <[email protected]>
---
 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

Reply via email to