File libmlx4-Add-receive-flow-steering-support.patch of Package libmlx4-rdmav2
From dcb68c418a7cb1b850f84e61f453ea7841fcbe10 Mon Sep 17 00:00:00 2001
From: Matan Barak <matanb@mellanox.com>
Date: Thu, 6 Feb 2014 14:21:36 +0200
Subject: [PATCH 3/3] Add receive flow steering support
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 | 2 ++
1 file changed, 2 insertions(+)
Index: libmlx4-1.0.5/src/mlx4.c
===================================================================
--- libmlx4-1.0.5.orig/src/mlx4.c 2014-03-31 18:20:29.248918355 +0200
+++ libmlx4-1.0.5/src/mlx4.c 2014-03-31 18:20:56.709284681 +0200
@@ -217,6 +217,8 @@ static int mlx4_init_context(struct verb
verbs_set_ctx_op(verbs_ctx, drv_ibv_create_ah_ex, mlx4_create_ah_ex);
verbs_set_ctx_op(verbs_ctx, drv_query_port_ex,
mlx4_query_port_ex);
+ verbs_set_ctx_op(verbs_ctx, drv_ibv_create_flow, ibv_cmd_create_flow);
+ verbs_set_ctx_op(verbs_ctx, drv_ibv_create_flow, ibv_cmd_create_flow);
return 0;
}