From patchwork Wed Jan 27 14:26:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maor Gottlieb X-Patchwork-Id: 8134491 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9C682BEEE5 for ; Wed, 27 Jan 2016 14:27:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 921EB201FA for ; Wed, 27 Jan 2016 14:27:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DA99201ED for ; Wed, 27 Jan 2016 14:27:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932868AbcA0O1V (ORCPT ); Wed, 27 Jan 2016 09:27:21 -0500 Received: from [193.47.165.129] ([193.47.165.129]:45342 "EHLO mellanox.co.il" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932555AbcA0O1V (ORCPT ); Wed, 27 Jan 2016 09:27:21 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from maorg@mellanox.com) with ESMTPS (AES256-SHA encrypted); 27 Jan 2016 16:26:56 +0200 Received: from vnc21.mtl.labs.mlnx (vnc21.mtl.labs.mlnx [10.7.2.21]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id u0REQu5M003590; Wed, 27 Jan 2016 16:26:56 +0200 Received: from vnc21.mtl.labs.mlnx (localhost.localdomain [127.0.0.1]) by vnc21.mtl.labs.mlnx (8.13.8/8.13.8) with ESMTP id u0REQuxv017674; Wed, 27 Jan 2016 16:26:56 +0200 Received: (from maorg@localhost) by vnc21.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id u0REQtcY017671; Wed, 27 Jan 2016 16:26:55 +0200 From: Maor Gottlieb To: yishaih@mellanox.com Cc: linux-rdma@vger.kernel.org, Maor Gottlieb Subject: [PATCH libmlx5] Add support for create/destroy flow Date: Wed, 27 Jan 2016 16:26:36 +0200 Message-Id: <1453904796-17573-1-git-send-email-maorg@mellanox.com> X-Mailer: git-send-email 1.7.11.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a call to the extended version of ibv_create_flow and ibv_destroy_flow. Signed-off-by: Maor Gottlieb --- 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;