From patchwork Mon Jul 23 16:48:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10540593 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A704D112B for ; Mon, 23 Jul 2018 16:48:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96EEC28C64 for ; Mon, 23 Jul 2018 16:48:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AEFE28CC4; Mon, 23 Jul 2018 16:48:19 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,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 56C5228C64 for ; Mon, 23 Jul 2018 16:48:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388697AbeGWRuV (ORCPT ); Mon, 23 Jul 2018 13:50:21 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:26625 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388283AbeGWRuV (ORCPT ); Mon, 23 Jul 2018 13:50:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1532364496; x=1563900496; h=from:to:cc:subject:date:message-id; bh=+2m1Ld7O9MkYSMtVYhsKEh6yVSfzVJBpx/b4EqLo53A=; b=Nnh+bcSkxL5Gukd34u/9eG5Je8BPL/vqu3n92TNMK/zmwvvWkG+C7846 7PUy2ynDsLnxRDklqjWPGn+tM14ECQntG88yAMfHz+zRLaybhO1/BT7hg YSoBfBEwAZGdeGvn9OzNAo+huOLVOJityriKX9TieDXPjyYP7YhuimtMm TEd3BA5+Y4450K9BC/0e0GaACLKMKL1+JPrZjzlcYLB22flQzHc5ux3fq fEXIOEpsr2mtFhtMTVr7qWRXwBJMxKuptgAQIVDj25u6PPFvWBI5EgiCR Q+TKVwVNmRlstCVDh4AFMXdnlapSkdIoTj1vo+rxX01Ydlof5StCVMYef A==; X-IronPort-AV: E=Sophos;i="5.51,393,1526313600"; d="scan'208";a="88094273" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 24 Jul 2018 00:48:16 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 23 Jul 2018 09:36:26 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 23 Jul 2018 09:48:17 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Daniel Ahlin , Bart Van Assche Subject: [PATCH 0/5] srp_daemon: Fix pkey handling Date: Mon, 23 Jul 2018 09:48:10 -0700 Message-Id: <20180723164815.26448-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 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 Hello Jason, A few days ago Daniel Ahlin reported to me that pkey handling in the srp_daemon is broken. Daniel sent me a single patch that I split into multiple patches. Hence this patch series. Please consider these patches for the upstream rdma-core repository. Thanks, Bart. Bart Van Assche (4): verbs, ibacm, librdmacm: Introduce ibv_get_pkey_index() srp_daemon: Move the pkey_index_to_pkey() definition srp_daemon: Use ibv_query_pkey() srp_daemon: Rename ib_path_rec.num_path Daniel Ahlin (1): srp_daemon: Fix pkey handling ibacm/prov/acmp/src/acmp.c | 16 ++--- libibverbs/man/CMakeLists.txt | 1 + libibverbs/man/ibv_get_pkey_index.3.md | 48 +++++++++++++++ libibverbs/verbs.c | 16 +++++ libibverbs/verbs.h | 6 ++ librdmacm/cma.c | 36 +++-------- srp_daemon/srp_daemon.c | 84 +++++++++++++++++--------- srp_daemon/srp_daemon.h | 1 + srp_daemon/srp_ib_types.h | 12 ++-- 9 files changed, 152 insertions(+), 68 deletions(-) create mode 100644 libibverbs/man/ibv_get_pkey_index.3.md