From patchwork Mon Jun 26 16:05:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amrani, Ram" X-Patchwork-Id: 9810027 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4FCD6603F2 for ; Mon, 26 Jun 2017 16:05:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51F11285E5 for ; Mon, 26 Jun 2017 16:05:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 467B7285F5; Mon, 26 Jun 2017 16:05:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8D92285E5 for ; Mon, 26 Jun 2017 16:05:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751427AbdFZQFv (ORCPT ); Mon, 26 Jun 2017 12:05:51 -0400 Received: from mail-by2nam01on0058.outbound.protection.outlook.com ([104.47.34.58]:7942 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750919AbdFZQFt (ORCPT ); Mon, 26 Jun 2017 12:05:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XNkIXZLUZQskSxJqfFAtQc32fh5qzcReNzsLbjQ2o3s=; b=JOcftW5HSoNBvo+nSdKi+UMUmDQ2esw2+y8HavR0PQ2yFfRPkOXDYWHehNyt3tZcGglbzt80q3U2nIxVZuwOpyg839CkU8Rm5fFQVqp7HYoXDp9w0jqgG244gAiqpG7Unq9H1UUy0Gq7u+vzZA7pI5gQvPPdBmMbxfVLOeRqX2k= Received: from SN1PR0701CA0079.namprd07.prod.outlook.com (2a01:111:e400:52fd::47) by DM2PR0701MB1017.namprd07.prod.outlook.com (2a01:111:e400:246f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Mon, 26 Jun 2017 16:05:47 +0000 Received: from BN1AFFO11FD043.protection.gbl (2a01:111:f400:7c10::195) by SN1PR0701CA0079.outlook.office365.com (2a01:111:e400:52fd::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Mon, 26 Jun 2017 16:05:47 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; obsidianresearch.com; dkim=none (message not signed) header.d=none;obsidianresearch.com; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD043.mail.protection.outlook.com (10.58.52.190) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1199.9 via Frontend Transport; Mon, 26 Jun 2017 16:05:46 +0000 Received: from lb-tlvb-ramrani.il.qlogic.org (10.185.6.119) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Mon, 26 Jun 2017 09:05:44 -0700 From: Ram Amrani To: CC: , , , Ram Amrani Subject: [PATCH rdma 3/3] RDMA/qedr: notify user application of supported WIDs Date: Mon, 26 Jun 2017 19:05:06 +0300 Message-ID: <1498493106-28604-4-git-send-email-Ram.Amrani@cavium.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1498493106-28604-1-git-send-email-Ram.Amrani@cavium.com> References: <1498493106-28604-1-git-send-email-Ram.Amrani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39410400002)(39450400003)(39840400002)(39400400002)(39850400002)(2980300002)(428002)(189002)(199003)(9170700003)(478600001)(107886003)(8676002)(50466002)(72206003)(48376002)(356003)(86362001)(305945005)(36756003)(4326008)(47776003)(5660300001)(50986999)(38730400002)(110136004)(76176999)(54906002)(2906002)(104016004)(6666003)(81166006)(6916009)(189998001)(2950100002)(8936002)(101416001)(77096006)(5003940100001)(106466001)(50226002)(2351001)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1017; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD043; 1:7cSPH0TLMtHA3oyk9LtWig6h9nahovNpdy5i1XEmbJAV6pfacMLAnQm+EMIrna3EuzoYb4GJiW+CNa1iUyQdNuGNEDnzb9mmGhaOV8QL+thwvGf9X36Xv+qcH5GUbrumerHz6cuFa2zLP23sozB9V3aLfR4d3jjjp6br3169AWyAYaDBnW+JykllFJ/J/OpUFBUZyUyPos22k8jhMIgEun1qsoUIo9at+ZsLU+JT9GxIv9FY+wUKvnbD7fFlmMHIziQHM3W7gjjnnY1lCnfmFMgL1umQIqevQ1LKcf9TbPcSwst2Je04my3UlShl7OFssZqMxWSlh5ORob782wngvlz0T0prPiYIPPUoK02Q9HEPybfbaFHGOkCKiWzRf6pIS01yb5upqfPV0G5HTzljlrHl6oyYcPFxYLb5xE4y6CKiupjSGqdnxnD5NnYLBQX0wrnblxkitHlT0QxQATPGDC/cJg/1z1YKpnq7V5J0nXU8qAZ1fa0pX3vkNLEFbmfMmU5AMRtQMnfIPeL9HUr3xxlkxvRFIOImLirWOFBMxpwvP6gbYZEJxfSa//QdbdqlF5kX46IUwQPaA+iMqQegu1o1hBwnxJvx0+CSj2X8y/laXFGVJR3AmQuQh533u4qJFMpxGanSX+yQah/V6/1O3iHXOLDja0Pw05wLWu+KcQ2ro/HNVun5StbJ/SDPbHxhXG6+o07Yzj3x2NglMC19FvjWg0KYtwX7hSbE0YIvz3McgGCYJ0PPQjJlEo4UF2rBLK461F2sWvEYq3FI57hLffPEHwxY0XtTTXiZCRd+6G6kZUe4/meVYh5fZDFx5FHH7vXMr/GlqGADgV1V+a/5mpLVw+oXPT2TvguF7B6yL+0= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8bd7d2ea-495f-459e-773b-08d4bcad351f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095); SRVR:DM2PR0701MB1017; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1017; 3:NcMIYq6BL3PeLBYY04t24pnwCP+ZRwNeMZzH2E8aE8rHLS+ZnHfkiUfcDGJl/wHRM4+ciG8pVQmjPN0yC+5mXnnwKbDd9hFggDYXuTvcKPyer7mRMRzRBctSeHGplDza4Y+WoN6HAKal2Xx7i1XtzD/PmETbJtGFg5+huAR7+xgr8ZQGaPef1Zi9RtecdRB5BvpCFyM4xGEb2Jl4XXCAXH3JIe2bG/k43d7mfscT6Em5njNYFidnhfG9pPQkrqpSech4h0ikELlPwBkT6HtTeuAR1VkVKSU61X7SuBLosYSBk7DsaEg1ix8ZLhN0mKZja6mDxvLIDKsRzzuxT4b2rVxeLu0glFVg/fgyAXUFNawjpkKjPS+f9w9j50N5M2pywmJLR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I9FKg7KZyaxf4NwF/mhKojugzfpLQEhF14V2c6k/coM0PebGssLTkT8UJiMYIjBvA== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1017; 20:DvZb06B3BWmOyLoOhLmKgHOKkdLTfVzo6LTvGDrpOSaiOAclVpoXe9H69C5TzvzP4BUZGZbBt0I/rvgiCS7/ghhWcqj6OS7CJko9RD2qbx34JtvntHgpoC8YDHDHbaWNqHDCgrMIY+h4+wqVpuBtwB3WPJr1vrykVEnt/ItES66Ke4OnUiISVDNLppek8naJupP2xMPjOIZi9GIfaeAaAqk2IWE6SCE8PyeZo9pJcLtEEl62ygd9SDw0kNfEsSSlmDZb2VaETI+Jd2qLpSMdWoEOu3NtKzApOzvQeY6a0V1VE+FhUU5MTpw2p/9gK1YGg0xFRe2VPLnaccjOTmnT6z4t59ikJZxTJJGVbFwfpMkT38+BoLDc84l84favMNsPkTVGTRMLwCW2g+OW+HqYog/IanJwy0IRI+Yq560LGHsVjU1JO99GBI8IOqJ7Md4Qq5SrHnnBX/7ddChTF/jiVFsYGBg68XOxETk7ASr/QrE/GCBy+22SWuMnEo92qNlY X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13016025)(5005006)(13018025)(8121501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR0701MB1017; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR0701MB1017; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1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?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1017; 5:nuqbiRkyOUguSlRy/5vBE2dgyH7EQ1SDdvUch7PAsjTTBabXD0YRdqISeyuTq4RYjDHNAtXZPXpdacijTBbnFyXeQKT6cLQcsgEBpN5bcjV0EWQHHs5ykqhqM/gdlxZv/Bz62cOX9zd2mUvt+pZv7R0v4Hd0gZye8Ao/kqHMq8YN8EHKf7yq5cH97fNMT83mJFFQxtGg9sDTDyPWKdRJL9UmgEh8xgWdvyhuITv/n4XA9XJEwGuZ5qT3EutI1kAD5+2mwvMUHwS4D2K4s3GKbpTpITCeETNaz1iR+1BvBWJybnJPl9VvlS//PneOLQTBH7f4+dy/VkoWpZAjQMerYYFyrK/WgHCJmVSq96W1mf5CRlBEUcpeS8Dy31zYhCjR+b/MQcQ91p3BNUjl232iL79gUgzZtxUZqSVN4FEPiDPtnGeepiFY8iTHNGcCawM/7Fv2RlippU+anKkrVokt5ba745IQpC3vwq9l25lTd0+yzxwq3oclarz2QXfab0/P; 24:ooBMpoDa7tuh66W9v2LI6rl7iLxaGrDR0TaUTOrS3OGnwiptb8otECNG1sJBhsRIn/m3vKdOKQefn3IQd3xtuNcwlo1Y5GFmahiwiVMQ9aw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1017; 7:zDvuJ5ensmJA6SgG9WRrS8XVIyCO5eR1Gs7tF96qqQmHVy71wpbZvb00n0rH5I/hRd72X0E0AZpEIAUuxbehrvcgeiLbHlgQGEEdZy6jCJfVeHxyPU/erZ/SzgmySM3k2aDN9XBNZM+mwckQlcriyrYCse74bs70j9xxyGmnjqGDWLRU9OC16+JWu2X8qTsIbYRlJXv+Ih77sb3Ou3HPdgC7Vs1QH1LT9yutDMqezUPR49iZkV3QW1MzFf6ghV+7/h8t/OkwpM/09G7CtulSuEEu7MdGJlEjj9WJrh4YZgJW3Ze27KHiI1oheL7ycfhLoCw+81U80xMPnH/uVTE96HNL2P6ZLchVioYWsFT3mak1ljpZ+HHCFP4gSS5iLBeKHDMrYWr8LaW779mgI/bIP+wEhaNqE26cnJPhgwjwIOqtp9TvtcwgwmtcxTxV4oHWrBinvwgLal4p+AExjgTcgtHPIIXtjtVMbhKdMgj3BF7Jh8Ezw05VdwAIMD+eogevUBu3hVBO7zSCzp0CZSzoXZGjwCmgZUIuJpubCkkCK7hEzIHS9eHm2BI1tOKr4tvmASceSD95bC7unrHlN5dhbprd9KyIlo0SVFlqONkqj5PgMJyuj6GUKzAgLJEksCeN52tZb6SfnyX0GVAU+CncrlTdI8xHtwfjlRGrArjbWQZfxD+lc6XzHLnTJOHgxhp2OReX0+qGA5fyjeAlP/riI6Lbu4HL39/SOSb/qOlPr8/YPFnSmtXLo/bK9Mj2e4EP9xveM/Y3rnswzopapAzqXr7THxSlu0BhMNAddXw9mrY= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2017 16:05:46.9269 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1017 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The number of supported WIDs, if they are supported at all, can be limited due to resources. Notifying the user space application the number of available WIDs allows it to utilize them correctly. Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/verbs.c | 2 ++ include/uapi/rdma/qedr-abi.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index d655364..b11da86 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -377,6 +377,8 @@ struct ib_ucontext *qedr_alloc_ucontext(struct ib_device *ibdev, memset(&uresp, 0, sizeof(uresp)); uresp.dpm_enabled = dev->user_dpm_enabled; + uresp.wids_enabled = 1; + uresp.wid_count = oparams.wid_count; uresp.db_pa = ctx->dpi_phys_addr; uresp.db_size = ctx->dpi_size; uresp.max_send_wr = dev->attr.max_sqe; diff --git a/include/uapi/rdma/qedr-abi.h b/include/uapi/rdma/qedr-abi.h index 2684004..54b6435 100644 --- a/include/uapi/rdma/qedr-abi.h +++ b/include/uapi/rdma/qedr-abi.h @@ -50,6 +50,8 @@ struct qedr_alloc_ucontext_resp { __u32 sges_per_srq_wr; __u32 max_cqes; __u8 dpm_enabled; + __u8 wids_enabled; + __u16 wid_count; }; struct qedr_alloc_pd_ureq {