net/mlx5: split multi-thread flow handling per OS
authorTal Shnaiderman <talshn@nvidia.com>
Thu, 7 Jan 2021 13:08:27 +0000 (15:08 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Jan 2021 18:45:30 +0000 (19:45 +0100)
commit5d55a494f4e62f29d945cf6c9ec1d0980a72642f
treef842fa77a9b9fed3f39b7db8e2e53acb689b5b5b
parentfc4a83e6b8cda56d71956ceb470ba0e98bd63cf1
net/mlx5: split multi-thread flow handling per OS

multi-threaded flows feature uses pthread function pthread_key_create
but for Windows the destruction option in the function is unimplemented.

To resolve it, Windows will implement destruction mechanism to cleanup
mlx5_flow_workspace object for each terminated thread.

Linux flow will keep the current behavior.

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Khoa To <khot@microsoft.com>
drivers/net/mlx5/linux/meson.build
drivers/net/mlx5/linux/mlx5_flow_os.c [new file with mode: 0644]
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/windows/mlx5_flow_os.c