| 11756 | |
| 11757 | |
| 11758 | static int |
| 11759 | mlx5_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 | |
| 11773 | void mlx5_release_tunnel_hub(struct mlx5_dev_ctx_shared *sh, uint16_t port_id) |
| 11774 | { |
no test coverage detected