From patchwork Sun Oct 7 08:08:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shamir Rabinovitch X-Patchwork-Id: 10629387 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 A083A184E for ; Sun, 7 Oct 2018 08:08:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9284429193 for ; Sun, 7 Oct 2018 08:08:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86A0829199; Sun, 7 Oct 2018 08:08:53 +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 1903E291A0 for ; Sun, 7 Oct 2018 08:08:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727536AbeJGPPQ (ORCPT ); Sun, 7 Oct 2018 11:15:16 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:49930 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbeJGPPQ (ORCPT ); Sun, 7 Oct 2018 11:15:16 -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 w97842WD016393; Sun, 7 Oct 2018 08:08:46 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=wvkth3s3Mub/bD5qEaX3xg0ggZ378ENEa35cwIwbF/o=; b=ZY5/FDyulUBuEt2F2hUxMp79tyRSey7iLNhZsRenTiO3OERLkZcNCqdeAZhHetip4Uhf f7n3KVxZRaS9oStmFFAXIrgtvfmYWI1GdQiCIVeclxcNLFGcxEEyyYmaVXIoSk41HlCj L70jOKjgiTOgmCD3qLCG+mZt0xKakmGx3WAHiIJ/tJxGMcoUB3el+aH1AsbAX3MN23+y sZnrJMymnozZg8UeTTMKSZ0A7qq+3TmXoeZekVKa7j02x6oX3wwIC8aKpCrANukwldjN +5eGh/xxHMiaYoDi3kz8sVNo8WdZR6oPoTTdefQLh4sFLikZwrVZBP+P44yXNPj5n43U wg== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2mxmfta7md-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 07 Oct 2018 08:08:45 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9788drm032032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 7 Oct 2018 08:08:40 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9788dSk026492; Sun, 7 Oct 2018 08:08:39 GMT Received: from localhost.localdomain (/10.175.55.174) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 07 Oct 2018 08:08:38 +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 0/7] convey ib_ucontext via ib_udata Date: Sun, 7 Oct 2018 11:08:13 +0300 Message-Id: <20181007080820.2571-1-shamir.rabinovitch@oracle.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9038 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=307 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810070086 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 Continuing with earlier posted series, "PATCH 0/3] figure uverbs/kernel ib_pd w/o using ib_pd uobject", this series moves ib_ucontext to ib_udata. 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 | 17 ++-- drivers/infiniband/core/uverbs_cmd.c | 40 ++++----- 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 | 61 ++++++++++--- 39 files changed, 307 insertions(+), 163 deletions(-)