diff mbox

[libmlx5] Add support for create/destroy flow

Message ID 1453904796-17573-1-git-send-email-maorg@mellanox.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Maor Gottlieb Jan. 27, 2016, 2:26 p.m. UTC
Add a call to the extended version of ibv_create_flow and
ibv_destroy_flow.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
---
 src/mlx5.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Yishai Hadas Feb. 3, 2016, 5:12 p.m. UTC | #1
On 1/27/2016 4:26 PM, Maor Gottlieb wrote:
> Add a call to the extended version of ibv_create_flow and
> ibv_destroy_flow.
>
> Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
> ---
>   src/mlx5.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/src/mlx5.c b/src/mlx5.c
> index e44898a..9dff4cc 100644
> --- a/src/mlx5.c
> +++ b/src/mlx5.c
> @@ -584,6 +584,8 @@ static int mlx5_init_context(struct verbs_device *vdev,
>   	verbs_set_ctx_op(v_ctx, create_srq_ex, mlx5_create_srq_ex);
>   	verbs_set_ctx_op(v_ctx, get_srq_num, mlx5_get_srq_num);
>   	verbs_set_ctx_op(v_ctx, query_device_ex, mlx5_query_device_ex);
> +	verbs_set_ctx_op(v_ctx, ibv_create_flow, ibv_cmd_create_flow);
> +	verbs_set_ctx_op(v_ctx, ibv_destroy_flow, ibv_cmd_destroy_flow);
>
>   	return 0;
>
>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/src/mlx5.c b/src/mlx5.c
index e44898a..9dff4cc 100644
--- a/src/mlx5.c
+++ b/src/mlx5.c
@@ -584,6 +584,8 @@  static int mlx5_init_context(struct verbs_device *vdev,
 	verbs_set_ctx_op(v_ctx, create_srq_ex, mlx5_create_srq_ex);
 	verbs_set_ctx_op(v_ctx, get_srq_num, mlx5_get_srq_num);
 	verbs_set_ctx_op(v_ctx, query_device_ex, mlx5_query_device_ex);
+	verbs_set_ctx_op(v_ctx, ibv_create_flow, ibv_cmd_create_flow);
+	verbs_set_ctx_op(v_ctx, ibv_destroy_flow, ibv_cmd_destroy_flow);
 
 	return 0;