[v1,39/72] net/mlx5/windows: define epoll API to do nothing

Message ID 20201027232335.31427-40-ophirmu@nvidia.com (mailing list archive)
State Superseded, archived
Delegated to: Raslan Darawsheh
Headers
Series mlx5 Windows support - part #5 |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Ophir Munk Oct. 27, 2020, 11:23 p.m. UTC
  This is a hack commit. Linux epoll mechanism is not implemented in
Windows.  Therefore define rte_intr_free_epoll_fd API to do nothing.

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
---
 drivers/net/mlx5/windows/mlx5_os.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Thomas Monjalon Oct. 28, 2020, 7:22 a.m. UTC | #1
28/10/2020 00:23, Ophir Munk:
> This is a hack commit. Linux epoll mechanism is not implemented in
> Windows.  Therefore define rte_intr_free_epoll_fd API to do nothing.

Yes this is hack.
Better to have a stub in EAL.
  

Patch

diff --git a/drivers/net/mlx5/windows/mlx5_os.h b/drivers/net/mlx5/windows/mlx5_os.h
index 5f4abc3..dd3515c 100644
--- a/drivers/net/mlx5/windows/mlx5_os.h
+++ b/drivers/net/mlx5/windows/mlx5_os.h
@@ -17,4 +17,5 @@  enum {
 #define PCI_DRV_FLAGS 0
 
 #define PTHREAD_MUTEX_INITIALIZER {(void *)-1, -1, 0, 0, 0, 0}
+#define rte_intr_free_epoll_fd
 #endif /* RTE_PMD_MLX5_OS_H_ */