From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0042.outbound.protection.outlook.com [104.47.1.42]) by dpdk.org (Postfix) with ESMTP id E87CD5F6C for ; Sat, 10 Mar 2018 02:25:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=eXJ7boz+banp6SQnlA4gDhdj1RcV8hknHOhIM3ItTK4=; b=g4sv6vvcjpSu4ofUCpQ35k2MH1Aqosuhtimdh7BcJpsS5o0T4E2QXGjoCbTiY7bzMU/46khyrgLkq0sHt5/y3eGrZy2CRWNeo8GjJWazsfyYiAQnN32BRSNldcnczG8EmxNrFI2zM3C8gLHSRy1iw2ccg66ktp9FhIOu5DBIhpE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by VI1PR0501MB2045.eurprd05.prod.outlook.com (2603:10a6:800:36::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Sat, 10 Mar 2018 01:25:52 +0000 From: Yongseok Koh To: wenzhuo.lu@intel.com, jingjing.wu@intel.com, adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, olivier.matz@6wind.com Cc: dev@dpdk.org, Yongseok Koh Date: Fri, 9 Mar 2018 17:25:29 -0800 Message-Id: <20180310012532.15809-4-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180310012532.15809-1-yskoh@mellanox.com> References: <20180310012532.15809-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: CO2PR07CA0068.namprd07.prod.outlook.com (2603:10b6:100::36) To VI1PR0501MB2045.eurprd05.prod.outlook.com (2603:10a6:800:36::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bbec64a7-957a-490f-5c16-08d58625de66 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2045; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2045; 3:nCQTO7XP+COhQc0VfXjtTw39xBEIAZ1CWi4Iage/FkEJM+auF2osxDvgk1BTqkY8wn8vlcaBpr9GS64zsDarzG+scytvcB2xVNSO19/DK8TVgsR00wIGl1bFNaC2LxBcUXiXJG/H6zQ99kRF848jNnZzPuTEI7TjlPEGDHGcE4rgjbRjdmS0NI2E3RTFCzziDfFSg0ceH02/SAU+3atM6Iq/4Qgirif9SmVpTQtbsECeFXOlkQcpMsHObYQ61Fk3; 25:WcBJBjwxijg/LoaPEEwFlWrMmXJOAR1A3MHbgsePXz525jzoqnmdLvsqdbwnM3R0eQ2MJEzC858haNTnGZ9Nfp8IxsLsVjLx36Hkd+NmbOUeHsLQtDkcM2Zapxhxoxb3EPy4d8R8v1zxAkHL31fEQI2BwIekyUZYD122OM0MWm8roBRqOGgkY2browamY/Nkx7ay1u2It/ATXUK2+8K+JXrzGmE7/Ve2YBSeoaw+OMBk7sxPkom91qyvHrObAQgHxtZp3GJ6Ka+lsscbXBPWgAyOLsUHAw8vkQrvkvIUj+z/XOftM7gdEBEXdZQYXVUu6fhtFEulrFsEQgQb0Phr3g==; 31:gvsr/MPd4nS5rFwSbyy5/ux9IWE62ESF18Bcnypj0Rw7J4SvaaVzf89koLTQtcj/EYKiqtKDCx5fgXnyUagTrN7Ls//SavPNj0Lj0S8IBcupNJMVvlWyS5bjper16J8Vqv5i1Abkl8Do3Ld5mjSiizZJZF7zl2JXh52Sxx9WiA45eSfoLmbVQgKrqq3Ah5N4goWemZeY1YZ2EURs2XH+RBS/B9GaFb8nIHKczY21Ay8= X-MS-TrafficTypeDiagnostic: VI1PR0501MB2045: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2045; 20:HD20mazbZyMUadp0NSEupsSIOlLDILWnY0BJ9xhuFZMzyCSlF3PpFBQST1AVBgH4e3EfwQyjmG2jpsk+gJrhr22pvXNSeLVWGHudXo7adxRSIgPLu9UoyCJnKL+rKcZQ7jE9kEpzH9NtcT8TYC3gkE4EdZaKDcXGvrxAoeR/+cbmenvMtSBPWzx65KXd08svF5JQJ8JGupQW3Ah87HLKSyUCiMj3xqrMP9zMN3xNGttSlbExUIkluehM/Nr6KX5BMqvp42bLRuTe3BRRAbr/xUCUPiLmwZ1KygBLDCRMU6p32QvzI8KrttwXqLKqdL2d9uN/3nURh2dLKWjOxmNrnZD4Xc6EumXKswOr4mEolh9hY3bf5ygcJS35Z44AiNM95i7ipl8Dhkyrqo/CkMwE+j55+dDr5J3RMlx2BrvNsL0XWgU8rCtFsc1iKq/svgH24posnJT7IzVn4w3dtJ9TPMgNl2A+2ZsHOBcd38z5j2BfGD178MoOstvd9dAhPIli; 4:xPplZ6Ot4py+dny+3R3Keu9GWLWz8NhAfIZKKX34+sqVKJfMxu4cFwt1AjJnskqGMljKLkYtXAyNIyCDWfdH2gXLtNgm1o9/wdxT6NRFdqYFVVs+p6MJn5nPcjis/5fsS6293GzOBfHDIfel0zSBgVk3zJdvSsA3BwA8c6D+0LGGtOrBnwN/kERdE4B0CivGt8hXXZL+dHVYZUv8eMHNfo+VnZb8y1TJdRuF+UtUEq+7vnsGe+bQDxCX4xqr5vz3RIzeIB/iWFzmgb+UutY1Rg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231220)(944501244)(52105095)(6055026)(6041310)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:VI1PR0501MB2045; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2045; X-Forefront-PRVS: 06070568C5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(346002)(396003)(376002)(366004)(39860400002)(189003)(199004)(7736002)(5660300001)(97736004)(7696005)(51416003)(36756003)(6666003)(478600001)(76176011)(107886003)(86362001)(8676002)(48376002)(55016002)(50466002)(52116002)(53936002)(4326008)(69596002)(25786009)(21086003)(105586002)(6116002)(3846002)(66066001)(386003)(2906002)(16586007)(186003)(50226002)(47776003)(68736007)(305945005)(8936002)(316002)(106356001)(26005)(1076002)(2950100002)(81156014)(16526019)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2045; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0501MB2045; 23:WR35FkaRvzRL/70kz2K6r6BbmQG1J5KCJB+sxyp?= =?us-ascii?Q?2c7b8ujfNsDAnhnve61MSvOcrNm3rIEW0S9dpgQSdpD0cAjjHFmP3a5LNN7Z?= =?us-ascii?Q?vv0Obbw8G5rYwtOUUCj9d2htk6yphORvTE9hn/CtwfO6kncqh9j9O9bqOdw0?= =?us-ascii?Q?8fFtVdvOhHR4RMQuJ00ZlsGoncU9dP+QqnqO28aYIXDpPCFBa2ZxALMRmCBM?= =?us-ascii?Q?UJ8H4l/JCw37+Iy/yHObPqBrk5yD5e3eZqBGJKntbLkWMD/h0GPjOgxuAhIN?= =?us-ascii?Q?luRSZ3u/mp0Y83AsbvAHscQlOyvJ0/Et88uX8eFtoi7G1XpVpPyqAJ0TeOGD?= =?us-ascii?Q?nZkDU4YUPECduixRerZO/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SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2018 01:25:52.9547 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bbec64a7-957a-490f-5c16-08d58625de66 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2045 Subject: [dpdk-dev] [PATCH v1 3/6] net/mlx5: add a function to rdma-core glue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2018 01:25:56 -0000 mlx5dv_create_wq() is added. Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_glue.c | 9 +++++++++ drivers/net/mlx5/mlx5_glue.h | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c index 1c4396ada..e33fc76b5 100644 --- a/drivers/net/mlx5/mlx5_glue.c +++ b/drivers/net/mlx5/mlx5_glue.c @@ -287,6 +287,14 @@ mlx5_glue_dv_create_cq(struct ibv_context *context, return mlx5dv_create_cq(context, cq_attr, mlx5_cq_attr); } +static struct ibv_wq * +mlx5_glue_dv_create_wq(struct ibv_context *context, + struct ibv_wq_init_attr *wq_attr, + struct mlx5dv_wq_init_attr *mlx5_wq_attr) +{ + return mlx5dv_create_wq(context, wq_attr, mlx5_wq_attr); +} + static int mlx5_glue_dv_query_device(struct ibv_context *ctx, struct mlx5dv_context *attrs_out) @@ -347,6 +355,7 @@ const struct mlx5_glue *mlx5_glue = &(const struct mlx5_glue){ .port_state_str = mlx5_glue_port_state_str, .cq_ex_to_cq = mlx5_glue_cq_ex_to_cq, .dv_create_cq = mlx5_glue_dv_create_cq, + .dv_create_wq = mlx5_glue_dv_create_wq, .dv_query_device = mlx5_glue_dv_query_device, .dv_set_context_attr = mlx5_glue_dv_set_context_attr, .dv_init_obj = mlx5_glue_dv_init_obj, diff --git a/drivers/net/mlx5/mlx5_glue.h b/drivers/net/mlx5/mlx5_glue.h index b5efee3b6..21a713961 100644 --- a/drivers/net/mlx5/mlx5_glue.h +++ b/drivers/net/mlx5/mlx5_glue.h @@ -100,6 +100,10 @@ struct mlx5_glue { (struct ibv_context *context, struct ibv_cq_init_attr_ex *cq_attr, struct mlx5dv_cq_init_attr *mlx5_cq_attr); + struct ibv_wq *(*dv_create_wq) + (struct ibv_context *context, + struct ibv_wq_init_attr *wq_attr, + struct mlx5dv_wq_init_attr *mlx5_wq_attr); int (*dv_query_device)(struct ibv_context *ctx_in, struct mlx5dv_context *attrs_out); int (*dv_set_context_attr)(struct ibv_context *ibv_ctx, -- 2.11.0