* Get thread specific current flow workspace. * * @return pointer to thread specific flow workspace data, NULL on error. */
| 8212 | * @return pointer to thread specific flow workspace data, NULL on error. |
| 8213 | */ |
| 8214 | struct mlx5_flow_workspace* |
| 8215 | mlx5_flow_get_thread_workspace(void) |
| 8216 | { |
| 8217 | struct mlx5_flow_workspace *data; |
| 8218 | |
| 8219 | data = mlx5_flow_os_get_specific_workspace(); |
| 8220 | MLX5_ASSERT(data && data->inuse); |
| 8221 | if (!data || !data->inuse) |
| 8222 | DRV_LOG(ERR, "flow workspace not initialized."); |
| 8223 | return data; |
| 8224 | } |
| 8225 | |
| 8226 | /** |
| 8227 | * Allocate and init new flow workspace. |
no test coverage detected