From patchwork Thu Jan 17 19:06:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shamir Rabinovitch X-Patchwork-Id: 10768825 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 5010C6C5 for ; Thu, 17 Jan 2019 19:07:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 414012BC2A for ; Thu, 17 Jan 2019 19:07:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 348D42BCA1; Thu, 17 Jan 2019 19:07:38 +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 A1E632BC2A for ; Thu, 17 Jan 2019 19:07:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727620AbfAQTHh (ORCPT ); Thu, 17 Jan 2019 14:07:37 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:56834 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727584AbfAQTHh (ORCPT ); Thu, 17 Jan 2019 14:07:37 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0HJ4AcG183941; Thu, 17 Jan 2019 19:07:34 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=gueuLQ1MMADrOLDuDp7ACtj5d77KWg79d32+Er8jhvE=; b=sKbkVCDJaVw4aT5yl2KKb4t/0o+eeYjQSc6eyOQqWdahXjTolZWr1OecCFKZIQieAFI4 JprCRLHDgSGD3f7PREqzj6+QdJg5Uns98xi/SJsRSJL20TTOi/pcdLFsHZkXNnIIzsN5 lnGDyPYMWP/4LTL764UBp3kRjtj9z6CZ8qN25zCW1m6QX5i41atRIC9lkkGF5EaPPeDW WWU9z4lKuDC+vqjUEeONohvkJBexDWysxXFTDc5KhmLDGyz5MUeTeBcnSHvBcjhprgqq a4mfW1pXzevabSDz8KwvP1L3nzloY6yQCw8sH9yeSML2zDYoJuTaO/y3wCPfPXODI7ay Mg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2pybjp1t52-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Jan 2019 19:07:33 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0HJ7XA3010333 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Jan 2019 19:07:33 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x0HJ7Wcg026874; Thu, 17 Jan 2019 19:07:32 GMT Received: from localhost.localdomain (/10.175.55.32) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Jan 2019 11:07:31 -0800 From: Shamir Rabinovitch To: linux-rdma@vger.kernel.org Cc: jgg@ziepe.ca, dledford@redhat.com, shamir.rabinovitch@oracle.com Subject: [PATCH for-next 0/1] IB/{hw,sw}: remove 'uobject->context' dependency APIs Date: Thu, 17 Jan 2019 21:06:57 +0200 Message-Id: <20190117190708.31307-1-shamir.rabinovitch@oracle.com> X-Mailer: git-send-email 2.17.2 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9139 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=605 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901170133 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 This patch continue the cleanup started with Jason RFC patch. This patch clean only the ib_xxx creation APIs beacuse those APIs do have ib_udata. The final goal of this cleanup is to remove the dependency in the IB code in the ib_xxx->uobject pointer as step toward shared ib_xxx objects. Seperate patch will be sent for the ib_xxx deletion APIs which do not have the ib_udata. For those the solution will have to be different. Shamir Rabinovitch (1): IB/{hw,sw}: remove 'uobject->context' dependency in object creation APIs drivers/infiniband/hw/bnxt_re/ib_verbs.c | 33 +++++-- drivers/infiniband/hw/cxgb3/iwch_provider.c | 4 +- drivers/infiniband/hw/cxgb4/qp.c | 8 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 15 +++- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 15 +++- drivers/infiniband/hw/mlx4/doorbell.c | 6 ++ drivers/infiniband/hw/mlx4/mr.c | 9 +- drivers/infiniband/hw/mlx4/qp.c | 92 +++++++++++++------- drivers/infiniband/hw/mlx4/srq.c | 13 ++- drivers/infiniband/hw/mlx5/qp.c | 68 +++++++++++---- drivers/infiniband/hw/mlx5/srq.c | 13 ++- drivers/infiniband/hw/mthca/mthca_provider.c | 28 ++++-- drivers/infiniband/hw/mthca/mthca_qp.c | 19 ++-- drivers/infiniband/hw/mthca/mthca_srq.c | 25 ++++-- drivers/infiniband/hw/nes/nes_verbs.c | 13 ++- drivers/infiniband/hw/qedr/verbs.c | 8 +- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 7 +- drivers/infiniband/sw/rdmavt/qp.c | 10 ++- drivers/infiniband/sw/rdmavt/srq.c | 10 ++- drivers/infiniband/sw/rxe/rxe_qp.c | 5 +- drivers/infiniband/sw/rxe/rxe_verbs.c | 5 +- 21 files changed, 287 insertions(+), 119 deletions(-)