From patchwork Tue Mar 26 19:18:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Wise X-Patchwork-Id: 10872123 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 D0140139A for ; Tue, 26 Mar 2019 19:39:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFCEE27861 for ; Tue, 26 Mar 2019 19:39:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A21FD2846C; Tue, 26 Mar 2019 19:39:37 +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,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,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 465A627861 for ; Tue, 26 Mar 2019 19:39:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732073AbfCZTjf (ORCPT ); Tue, 26 Mar 2019 15:39:35 -0400 Received: from linode.aoot.com ([69.164.194.13]:46582 "EHLO linode.aoot.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726278AbfCZTjf (ORCPT ); Tue, 26 Mar 2019 15:39:35 -0400 X-Greylist: delayed 1218 seconds by postgrey-1.27 at vger.kernel.org; Tue, 26 Mar 2019 15:39:34 EDT Received: from work.aoot.com.com (li1110-136.members.linode.com [45.79.11.136]) by linode.aoot.com (Postfix) with ESMTP id 90B378721; Tue, 26 Mar 2019 14:19:16 -0500 (CDT) From: Steve Wise To: dsahern@gmail.com, leon@kernel.org Cc: Steve Wise , stephen@networkplumber.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH v2 iproute2-next 0/4] Dynamic rdma link creation Date: Tue, 26 Mar 2019 14:18:26 -0500 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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-5.1. Changes since v1: - move error receive checking from rd_sendrecv_msg() to rd_recv_msg(). - Add rd->suppress_errors to allow control over whether errors when reading a response should be ignored. Namely: resource queries can get errors like "none found" when querying for resources, and this error should not be displayed. So on a rd object basis, error suppression can be controlled. - Rebased on rdma/for-next UABI (no need to sync rdma_netlink.h now) - use chains of struct rd_cmd and rd_exec_cmd vs open coding the parsing for the 'link add' command. - minor nit resolution - added .mailmap file. If this is not desired for iproute2, then please drop the patch. 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): Add .mailmap file rdma: add helper rd_sendrecv_msg() rdma: add 'link add/delete' commands rdma: man page update for link add/delete .mailmap | 8 +++++ man/man8/rdma-link.8 | 47 +++++++++++++++++++++++++ rdma/dev.c | 2 +- rdma/link.c | 83 ++++++++++++++++++++++++++++++++++++++++++++ rdma/rdma.h | 4 +++ rdma/res.h | 1 + rdma/utils.c | 18 ++++++++++ 7 files changed, 162 insertions(+), 1 deletion(-) create mode 100644 .mailmap