From patchwork Fri Sep 28 15:43:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Wise X-Patchwork-Id: 10620139 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 9AAD615E8 for ; Fri, 28 Sep 2018 15:45:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93F852868D for ; Fri, 28 Sep 2018 15:45:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87CA828936; Fri, 28 Sep 2018 15:45:31 +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.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 1B7AE2868D for ; Fri, 28 Sep 2018 15:45:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729532AbeI1WJu (ORCPT ); Fri, 28 Sep 2018 18:09:50 -0400 Received: from 72-48-214-68.dyn.grandenetworks.net ([72.48.214.68]:56314 "EHLO smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729124AbeI1WJt (ORCPT ); Fri, 28 Sep 2018 18:09:49 -0400 Received: by smtp.opengridcomputing.com (Postfix, from userid 503) id 7710B22786; Fri, 28 Sep 2018 10:45:29 -0500 (CDT) Message-Id: From: Steve Wise Date: Fri, 28 Sep 2018 08:43:05 -0700 Subject: [PATCH v1 rdma-next 0/2] Dynamic rdma link creation To: linux-rdma@vger.kernel.org Cc: leon@kernel.org, jgg@ziepe.ca, BMT@zurich.ibm.com 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 series enables creating soft rdma links dynamically using netlink messages. The user 'rdma' command [1] will be enhanced to send these new messages. Note there is at least one outstanding issue: the rdma-core requires RXE links to be named "rxe*" or it fails to associate an rxe uverbs driver with the rxe provider. This is TBD. [1] rdma tool support (work-in-progess): https://github.com/larrystevenwise/iproute2/tree/wip/newlink Changes since RFC: - rebased on top of leon's and jason's device name work - request module load if the link ops aren't found - detect duplicate link ops adds - const char * changes - use the RDMA_NLDEV open enum values Steve Wise (2): RDMA/Core: add RDMA_NLDEV_CMD_NEWLINK/DELLLINK support rdma_rxe: use netlink messages to add/delete links drivers/infiniband/core/nldev.c | 128 ++++++++++++++++++++++++++++++++++ drivers/infiniband/sw/rxe/rxe.c | 67 +++++++++++++++++- drivers/infiniband/sw/rxe/rxe.h | 2 +- drivers/infiniband/sw/rxe/rxe_net.c | 4 +- drivers/infiniband/sw/rxe/rxe_net.h | 2 +- drivers/infiniband/sw/rxe/rxe_sysfs.c | 6 +- drivers/infiniband/sw/rxe/rxe_verbs.c | 4 +- drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +- include/rdma/rdma_netlink.h | 13 ++++ include/uapi/rdma/rdma_netlink.h | 9 ++- 10 files changed, 224 insertions(+), 13 deletions(-)