From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEC80C433DF for ; Tue, 23 Jun 2020 11:01:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE1E520771 for ; Tue, 23 Jun 2020 11:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592910073; bh=6Dhmwh7zQ7SRyV8MNEqgK3WOTVbxQQK0u/oit61PGrA=; h=From:To:Cc:Subject:Date:List-ID:From; b=v5raxxi6O1E+lrShkVwYnrK/hoV1zHswT9kZ/AaRUGPshkNZ1Pe5qvWdcARhGPn3E yFhf3HcQHzpes+Oo/K8XE70RLEVvYyOp58WmfrNSJI7nHdhM7W4LYJKjrIeXLSd5rw +bmSRWvHknK6QOEk9esnCEmLiYyiLoZyU/FF2Ga8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732332AbgFWLBM (ORCPT ); Tue, 23 Jun 2020 07:01:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:45750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732245AbgFWLBK (ORCPT ); Tue, 23 Jun 2020 07:01:10 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E03FA20738; Tue, 23 Jun 2020 11:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592910070; bh=6Dhmwh7zQ7SRyV8MNEqgK3WOTVbxQQK0u/oit61PGrA=; h=From:To:Cc:Subject:Date:From; b=p6cgvNYYoiTE/Cd7/f9UH/1lcx/0GKbtexPlA2yqh56w7QkrG31+gaFpJmbjph3st bA1qFgjP6PQl5RVxv4J+2EESkJJBqphu/dte2HVu4G0QCOxOtwR2dFq/4QTdxIhrhU e2ej38qYjhOu8e/Q3ZsfGz92OiRM4LiHrFE9cPQU= From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , Feras Daoud , Jakub Kicinski , linux-rdma@vger.kernel.org, Michael Guralnik , netdev@vger.kernel.org, Saeed Mahameed Subject: [PATCH rdma-next 0/2] Create IPoIB QP with specific QP number Date: Tue, 23 Jun 2020 14:01:03 +0300 Message-Id: <20200623110105.1225750-1-leon@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Leon Romanovsky >From Michael, This series handles IPoIB child interface creation with setting interface's HW address. In current implementation, lladdr requested by user is ignored and overwritten. Child interface gets the same GID as the parent interface and a QP number which is assigned by the underlying drivers. In this series we fix this behavior so that user's requested address is assigned to the newly created interface. As specific QP number request is not supported for all vendors, QP number requested by user will still be overwritten when this is not supported. Behavior of creation of child interfaces through the sysfs mechanism or without specifying a requested address, stays the same. Thanks Michael Guralnik (2): net/mlx5: Enable QP number request when creating IPoIB underlay QP RDMA/ipoib: Handle user-supplied address when creating child drivers/infiniband/ulp/ipoib/ipoib_main.c | 11 +++++++++-- drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c | 7 +++++++ drivers/net/ethernet/mellanox/mlx5/core/main.c | 3 +++ include/linux/mlx5/mlx5_ifc.h | 9 +++++++-- 4 files changed, 26 insertions(+), 4 deletions(-) -- 2.26.2