MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mlx5_flow_get_thread_workspace

Function mlx5_flow_get_thread_workspace

dpdk/drivers/net/mlx5/mlx5_flow.c:8214–8224  ·  view source on GitHub ↗

* Get thread specific current flow workspace. * * @return pointer to thread specific flow workspace data, NULL on error. */

Source from the content-addressed store, hash-verified

8212 * @return pointer to thread specific flow workspace data, NULL on error.
8213 */
8214struct mlx5_flow_workspace*
8215mlx5_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.

Callers 15

flow_dv_prepareFunction · 0.85
flow_dv_translateFunction · 0.85
flow_dv_applyFunction · 0.85
flow_verbs_prepareFunction · 0.85
flow_verbs_translateFunction · 0.85
flow_verbs_applyFunction · 0.85

Tested by

no test coverage detected