From patchwork Tue Jan 29 19:11:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Wise X-Patchwork-Id: 10787085 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 F2685139A for ; Tue, 29 Jan 2019 19:13:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E182C2C96D for ; Tue, 29 Jan 2019 19:13:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D23162C978; Tue, 29 Jan 2019 19:13:56 +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 6E17F2C96D for ; Tue, 29 Jan 2019 19:13:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729398AbfA2TNz (ORCPT ); Tue, 29 Jan 2019 14:13:55 -0500 Received: from opengridcomputing.com ([72.48.214.68]:37886 "EHLO smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbfA2TNz (ORCPT ); Tue, 29 Jan 2019 14:13:55 -0500 Received: by smtp.opengridcomputing.com (Postfix, from userid 503) id ECB0F22791; Tue, 29 Jan 2019 13:13:54 -0600 (CST) Message-Id: From: Steve Wise Date: Tue, 29 Jan 2019 11:11:25 -0800 Subject: [PATCH rdma-core 0/2] Support for no port mapping requirements To: dledford@redhat.com, jgg@mellanox.com Cc: linux-rdma@vger.kernel.org, BMT@zurich.ibm.com, shiraz.saleem@intel.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 A soft iwarp driver that uses the host TCP stack via a kernel mode socket does not need port mapping. In fact, if the port map daemon, iwpmd, is running, then iwpmd must not try and create/bind a socket to the actual port for a soft iwarp connection, since the driver already has that socket bound. Yet if the soft iwarp driver wants to interoperate with hard iwarp devices that -are- using port mapping, then the soft iwarp driver's mappings still need to be maintained and advertised by the iwpm protocol. This series updates iwpmd V4 of the IWPM ABI to support soft iwarp. The ABI version define has been created in rdma_netlink.h so both kernel and user code can share it. The iwcm and iwpmd negotiate the ABI version to use with a new HELLO netlink message. This patch series can also be viewed at: https://github.com/larrystevenwise/rdma-core/tree/topic/no-port-map-v1 The corresponding kernel changes are at: https://github.com/larrystevenwise/linux/tree/topic/no-port-map-v1 https://www.spinics.net/lists/linux-rdma/msg73884.html Steve Wise (2): Refresh rdma_netlink.h iwpmd: add NO_PORT_MAP support iwpmd/iwarp_pm.h | 8 +- iwpmd/iwarp_pm_helper.c | 26 +++-- iwpmd/iwarp_pm_server.c | 229 +++++++++++++++++++++++++++---------- kernel-headers/rdma/rdma_netlink.h | 45 +++++++- 4 files changed, 235 insertions(+), 73 deletions(-)