diff mbox

[libmlx4] Align the Flow Steering support with libibverbs

Message ID 1400075090-14296-1-git-send-email-ogerlitz@mellanox.com (mailing list archive)
State Rejected
Headers show

Commit Message

Or Gerlitz May 14, 2014, 1:44 p.m. UTC
From: Matan Barak <matanb@mellanox.com>

Fix the implementation of receive flow steering in libmlx4 to
use the right verbs entries according to the verbs extensions scheme.

The implementation uses the default commands from libibverbs.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
---
 src/mlx4.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Jason Gunthorpe May 14, 2014, 3:48 p.m. UTC | #1
On Wed, May 14, 2014 at 04:44:49PM +0300, Or Gerlitz wrote:
> From: Matan Barak <matanb@mellanox.com>
> 
> Fix the implementation of receive flow steering in libmlx4 to
> use the right verbs entries according to the verbs extensions scheme.
> 
> The implementation uses the default commands from libibverbs.
> 
> Signed-off-by: Matan Barak <matanb@mellanox.com>
> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>

Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
--
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/mlx4.c b/src/mlx4.c
index 2999150..1ee0338 100644
--- a/src/mlx4.c
+++ b/src/mlx4.c
@@ -203,8 +203,8 @@  static int mlx4_init_context(struct verbs_device *v_device,
 	verbs_set_ctx_op(verbs_ctx, get_srq_num, verbs_get_srq_num);
 	verbs_set_ctx_op(verbs_ctx, create_qp_ex, mlx4_create_qp_ex);
 	verbs_set_ctx_op(verbs_ctx, open_qp, mlx4_open_qp);
-	verbs_set_ctx_op(verbs_ctx, drv_ibv_create_flow, ibv_cmd_create_flow);
-	verbs_set_ctx_op(verbs_ctx, drv_ibv_destroy_flow, ibv_cmd_destroy_flow);
+	verbs_set_ctx_op(verbs_ctx, create_flow, ibv_cmd_create_flow);
+	verbs_set_ctx_op(verbs_ctx, destroy_flow, ibv_cmd_destroy_flow);
 
 	return 0;