From patchwork Sun Oct 14 06:11:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shamir Rabinovitch X-Patchwork-Id: 10640535 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 EE08915E2 for ; Sun, 14 Oct 2018 06:11:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEA8F2A49D for ; Sun, 14 Oct 2018 06:11:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D37422A4A1; Sun, 14 Oct 2018 06:11:59 +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 78C122A49D for ; Sun, 14 Oct 2018 06:11:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726175AbeJNNvt (ORCPT ); Sun, 14 Oct 2018 09:51:49 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:45020 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbeJNNvt (ORCPT ); Sun, 14 Oct 2018 09:51:49 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9E69dae172973; Sun, 14 Oct 2018 06:11:44 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=ukFc9NUZKlkHtwtc61BLJvrd7xKVwfy6lBy2d5sdhso=; b=BQ7a3uxTZz3zMpE4rzdsNUAnZFaEWcYiCb9N0zxnUCGfuO/gs7rAlLPjDlxIHAKAG68s O575qgyUwkiYnZFNVes2/3NNrotJHa8/RgrULxvURg4hkGXlij3+8FocOEDRCoJoKpyz 30r/k7coO/bjqyqASCHqTkLn2NH9Wu42huiSxVUjGNQl/LWWGjbBK/F8ff5U/nAs2enx NQj/aTK9N9IIwgQsDVV0CEhsOKPN2V7Sq6C9boF6l0B0fMOeSHf34lPGba/cjZoFDt86 OA/Qo/f41DR9L5sXK5z7b6mGU2ihfT2uqpGsCJ2BzHRVeNyFdA4ELOenSxn3W9Fh7llb NQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2n39bqv2he-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Oct 2018 06:11:43 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9E6BbxF026303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Oct 2018 06:11:37 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9E6Bamq018998; Sun, 14 Oct 2018 06:11:36 GMT Received: from localhost.localdomain (/10.175.37.52) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 14 Oct 2018 06:11:35 +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 09:11:11 +0300 Message-Id: <20181014061118.14889-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=358 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810140059 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, "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 rdma_udata_context 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(-)