From patchwork Thu Feb 21 18:22:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Wise X-Patchwork-Id: 10824543 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 D9D4A1390 for ; Thu, 21 Feb 2019 18:25:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBF9D32053 for ; Thu, 21 Feb 2019 18:25:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0B2632057; Thu, 21 Feb 2019 18:25:52 +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 46BA132053 for ; Thu, 21 Feb 2019 18:25:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728148AbfBUSZv (ORCPT ); Thu, 21 Feb 2019 13:25:51 -0500 Received: from opengridcomputing.com ([72.48.214.68]:52624 "EHLO smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbfBUSZv (ORCPT ); Thu, 21 Feb 2019 13:25:51 -0500 Received: by smtp.opengridcomputing.com (Postfix, from userid 503) id 80B4A22796; Thu, 21 Feb 2019 12:25:50 -0600 (CST) Message-Id: From: Steve Wise Date: Thu, 21 Feb 2019 10:22:42 -0800 Subject: [PATCH v1 iproute2-next 0/4] Dynamic rdma link creation To: dsahern@gmail.com, leon@kernel.org Cc: stephen@networkplumber.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org 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 adds rdmatool support for creating/deleting rdma links. This will be used, mainly, by soft rdma drivers to allow adding/deleting rdma links over netdev interfaces. It provides the user side for the following kernel changes merged in linux-rdma/for-next: https://www.spinics.net/lists/linux-rdma/msg75609.html I believe this series is ready to go. Please review! Changes since RFC: - add rd_sendrecv_msg() and make use of it in dev_set as well as the new link commands. - fixed problems with the man pages - changed the command line to use "netdev" as the keyword for the network device, do avoid confused with the ib_device name. - got rid of the "type" parameter for link delete. Also pass down the device index instead of the name, using the common rd services for validating the device name and fetching the index. Thanks, Steve. Steve Wise (4): rdma: add helper rd_sendrecv_msg() Sync up rdma_netlink.h rdma: add 'link add/delete' commands rdma: man page update for link add/delete man/man8/rdma-link.8 | 47 ++++++++++++++++++++++ rdma/dev.c | 2 +- rdma/include/uapi/rdma/rdma_netlink.h | 74 +++++++++++++++++++++++++++-------- rdma/link.c | 67 +++++++++++++++++++++++++++++++ rdma/rdma.h | 2 + rdma/utils.c | 23 ++++++++++- 6 files changed, 197 insertions(+), 18 deletions(-)