From patchwork Sun Oct 14 07:04:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shamir Rabinovitch X-Patchwork-Id: 10640559 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 5721613AD for ; Sun, 14 Oct 2018 07:05:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 427FF2A2BE for ; Sun, 14 Oct 2018 07:05:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 334E42A2C7; Sun, 14 Oct 2018 07:05:05 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY 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 C54AB2A2BE for ; Sun, 14 Oct 2018 07:05:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726356AbeJNOpD (ORCPT ); Sun, 14 Oct 2018 10:45:03 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:42490 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbeJNOpC (ORCPT ); Sun, 14 Oct 2018 10:45:02 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9E747rP059605; Sun, 14 Oct 2018 07:04:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=skUHxSzBx5ntLTSaYNv2SyDt9RGvmu2rd5Dhw0inFEk=; b=SCiN99wu80KO8hoWdbyzIO89seg9WzYGUX/E8f7h5rlZhsqokM4Fp2E6ZJC6A+VLJIbg y4PmjhlWlrj0RS3AbkbF9+5mAQkeY1Z2Rxz15vOg0S2npvEqT1BY6j9wsuG/nhEROpVC luTJv/IYJhypynZREuKLp9eBtQRqNulM6IMxPLOFPiY4D5rWVksfOvgQrVsfbl92jCw+ kdlDXkcYjDp7+Wnw99LQEzQvjhi2sTNPgUXW+2V7c4JOAU9p0ssgPxGcyS9tZtmybHUv D1OorZhiokjvwNLffJZFkKdgzUkg5nMN+SSkOSlXmRZbb5WiM5M/j3YkOsEmZqlNGdZc dw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2n384tmdy4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Oct 2018 07:04:58 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9E74vin025879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Oct 2018 07:04:57 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9E74vFa017721; Sun, 14 Oct 2018 07:04:57 GMT Received: from localhost.localdomain (/10.175.37.52) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 14 Oct 2018 07:04:56 +0000 From: Shamir Rabinovitch To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, jgg@ziepe.ca, leon@kernel.org, santosh.shilimkar@oracle.com, shamir.rabinovitch@oracle.com Subject: [PATCH v2 0/7] convey ib_ucontext via ib_udata Date: Sun, 14 Oct 2018 10:04:38 +0300 Message-Id: <20181014070445.4130-1-shamir.rabinovitch@oracle.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9045 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=364 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810140068 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 Sorry for the trouble. Please review this series and not the previous one I posted with same name. I found 2 issues in previous send of this series, one was the incorrect cover letter and one was invalid direct access to file->ucontext in patch 5 that was missed. Continuing with earlier posted series, "figure uverbs/kernel ib_pd w/o using ib_pd uobject", this series moves ib_ucontext to ib_udata. Changelog: v1->v2: * Patch 1: Comments from Jason - Fix indent - Add rdma_udata_context accessor * Patch 2: Comments from Jason - Use ib_uverbs_get_ucontext accessor * Patch 5: - Use ib_uverbs_get_ucontext accessor Shamir Rabinovitch (7): IB/verbs: add ib_ucontext to ib_udata IB/uverbs: initialize context field in ib_udata IB/verbs: dealloc_pd verb need ib_udata IB/verbs: alloc_mr verb need ib_udata IB/verbs: dereg_mr verb need ib_udata IB/verbs: destroy_wq verb need ib_udata IB/verbs: destroy_qp verb need ib_udata drivers/infiniband/core/uverbs.h | 9 +- drivers/infiniband/core/uverbs_cmd.c | 41 ++++----- drivers/infiniband/core/uverbs_main.c | 6 +- drivers/infiniband/core/uverbs_std_types.c | 18 +++- drivers/infiniband/core/uverbs_std_types_mr.c | 13 ++- drivers/infiniband/core/verbs.c | 88 +++++++++++++++---- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 8 +- drivers/infiniband/hw/bnxt_re/ib_verbs.h | 8 +- drivers/infiniband/hw/cxgb3/iwch_provider.c | 19 ++-- drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 7 +- drivers/infiniband/hw/cxgb4/mem.c | 5 +- drivers/infiniband/hw/cxgb4/provider.c | 4 +- drivers/infiniband/hw/cxgb4/qp.c | 2 +- drivers/infiniband/hw/i40iw/i40iw_cm.c | 4 +- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 12 +-- drivers/infiniband/hw/mlx4/main.c | 2 +- drivers/infiniband/hw/mlx4/mlx4_ib.h | 9 +- drivers/infiniband/hw/mlx4/mr.c | 5 +- drivers/infiniband/hw/mlx4/qp.c | 7 +- drivers/infiniband/hw/mlx5/gsi.c | 5 +- drivers/infiniband/hw/mlx5/main.c | 10 +-- drivers/infiniband/hw/mlx5/mlx5_ib.h | 12 +-- drivers/infiniband/hw/mlx5/mr.c | 5 +- drivers/infiniband/hw/mlx5/qp.c | 6 +- drivers/infiniband/hw/mthca/mthca_provider.c | 6 +- drivers/infiniband/hw/nes/nes_cm.c | 4 +- drivers/infiniband/hw/nes/nes_verbs.c | 13 +-- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 9 +- drivers/infiniband/hw/ocrdma/ocrdma_verbs.h | 9 +- drivers/infiniband/hw/qedr/verbs.c | 9 +- drivers/infiniband/hw/qedr/verbs.h | 8 +- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 6 +- drivers/infiniband/hw/usnic/usnic_ib_verbs.h | 6 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c | 4 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c | 2 +- .../infiniband/hw/vmw_pvrdma/pvrdma_verbs.c | 4 +- .../infiniband/hw/vmw_pvrdma/pvrdma_verbs.h | 8 +- drivers/infiniband/sw/rxe/rxe_verbs.c | 9 +- include/rdma/ib_verbs.h | 80 +++++++++++++++-- 39 files changed, 327 insertions(+), 155 deletions(-)