From patchwork Wed Apr 3 17:10:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Wise X-Patchwork-Id: 10884265 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 2CB57139A for ; Wed, 3 Apr 2019 17:12:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1295F1FE82 for ; Wed, 3 Apr 2019 17:12:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 035C52848B; Wed, 3 Apr 2019 17:12:03 +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 9E4001FE82 for ; Wed, 3 Apr 2019 17:12:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbfDCRLx (ORCPT ); Wed, 3 Apr 2019 13:11:53 -0400 Received: from linode.aoot.com ([69.164.194.13]:54702 "EHLO linode.aoot.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfDCRLw (ORCPT ); Wed, 3 Apr 2019 13:11:52 -0400 Received: from work.aoot.com.com (li1110-136.members.linode.com [45.79.11.136]) by linode.aoot.com (Postfix) with ESMTP id E2E848645; Wed, 3 Apr 2019 12:11:51 -0500 (CDT) From: Steve Wise To: dsahern@gmail.com Cc: Steve Wise , leon@kernel.org, stephen@networkplumber.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH v3 iproute2-next 0/4] Dynamic rdma link creation Date: Wed, 3 Apr 2019 12:10:28 -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 v2: - move checks for required parameters in the parameter handlers - move final 'link add' processing to link_add_netdev() - added reviewed-by tags 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 | 78 ++++++++++++++++++++++++++++++++++++++++++++ rdma/rdma.h | 4 +++ rdma/res.h | 1 + rdma/utils.c | 18 ++++++++++ 7 files changed, 157 insertions(+), 1 deletion(-) create mode 100644 .mailmap