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

Function mlx5_get_flow_tunnel

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

Source from the content-addressed store, hash-verified

11756
11757
11758static int
11759mlx5_get_flow_tunnel(struct rte_eth_dev *dev,
11760 const struct rte_flow_tunnel *app_tunnel,
11761 struct mlx5_flow_tunnel **tunnel)
11762{
11763 struct tunnel_db_get_tunnel_ctx ctx = {
11764 .app_tunnel = app_tunnel,
11765 };
11766
11767 mlx5_access_tunnel_offload_db(dev, get_tunnel_match, get_tunnel_hit,
11768 get_tunnel_miss, &ctx, true);
11769 *tunnel = ctx.tunnel;
11770 return ctx.tunnel ? 0 : -ENOMEM;
11771}
11772
11773void mlx5_release_tunnel_hub(struct mlx5_dev_ctx_shared *sh, uint16_t port_id)
11774{

Callers 2

mlx5_flow_tunnel_matchFunction · 0.85

Calls 1

Tested by

no test coverage detected