Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5208769pxv; Tue, 20 Jul 2021 23:15:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC+GU5WKIFzGlTqKXvlt/I6aN5R5Pc7YJ1SAc9BvtmhnxaRc4ZaMSIFg12efwqepvjLdYn X-Received: by 2002:a92:d98c:: with SMTP id r12mr25205043iln.304.1626848114150; Tue, 20 Jul 2021 23:15:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626848114; cv=none; d=google.com; s=arc-20160816; b=UinyPBWjMBLAfeZ7x2aFUzAbND/luDzOYKQG2jW5GL1G7EMbr1+sRwuqzG6LX4Df6o 6HybBuYvB4zmn9y07G31MZ18t/v5NiGZLXICzjwMmDYxYDlGSG9gqEtjMb3jZyFd78YA i1z92YNzu580dCxgHMvqi19WoXpUZGrCuMmW2ej/sx6thGyDjEswGirJYo9t6eu1EOt8 pjdGpA4BrTzf5U2TUb0WolNbM3tJx7V+pFFmjV3nbzFDEjiF0hsVY1vf+qhBxKOVS+j1 qoqsAszMzroy9FRkFB4MnqO08HBju8ylvwEaKEAW+jsWuDY7YsAqWp5P6mwcU7PG+HxG XtfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=04BRNSfr+gVWwbCyTbLbOtcfhEzM8EHeRo9aB6BfbY4=; b=bTcQgN6CG2f0B2b78sXHWtrclPmpxHFqIgrZnwuIQQvyQh2+t7xa6cT8TGkIoZnQ2I IsyPcCLNClwBnW6e6ty5+SuFAkDnVZ4tPmx0kFnqtExYYy4eLbWNGdiVNjYDE6BvojzX mJRDRpCCqCL3dTbySXyApI1DY+y7sXN6QriaqM02CiY38upFhBkCGiRHN6cx0nKlSzWS sPoxBY4wPueHfDFP7qoY/27jzTHHZmK+7x4wSM/Qx8FOOkqx9mEZSkkctAu3rPu7ykEw 9n5BKsbyNaHoSLKLpuet0M+vDx9yE7r5bsXZcAVKB1Sb7lQzGh/EtwRt3fGL/ZzwQ8gG Zx8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=raRW2tDW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si23913847ila.157.2021.07.20.23.15.02; Tue, 20 Jul 2021 23:15:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=raRW2tDW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232390AbhGUFch (ORCPT + 99 others); Wed, 21 Jul 2021 01:32:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:34136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbhGUFce (ORCPT ); Wed, 21 Jul 2021 01:32:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 19AD761007; Wed, 21 Jul 2021 06:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626847991; bh=qyuJ/Pm4Y6kbn5Ux8VS9eXZoNl/MNbn/y0CNK17o4uY=; h=From:To:Cc:Subject:Date:From; b=raRW2tDWA+OxotJ/HaLx0ZZxa3KtUIz3h/bzd1b1H2L2K16vx1uFC0w7t/VvhTaUU ZQsWIYLIjk6RAm9rdQv6jZF6BTQYeXpDJoX0pM95a2ord8+sVSESWHiO2LnmCeGH6+ USvYVcO1Z2oj7BOEGZpY9xh99uvaWl583xJilE0m5bZkZ2pTTtXb3hL8UF8GD8DU1c BFJnmay4vFEgohz73xPAG+Q6oTeJB0a3sPTW3kIjGppHHzNb6ZT4y/MPhOtGX7mdXL ZGgV27NzDbvJR5xU6fERDXxxMYJtofvONkhhx6+v46jNUHm/z77p17G/HpVV7fedqX 0OX7Ksk2DCbDg== From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Mark Zhang Subject: [PATCH rdma-next 0/7] Separate user/kernel QP creation logic Date: Wed, 21 Jul 2021 09:12:59 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky Hi, The "QP allocation" series shows clearly how convoluted the create QP flow and especially in XRC_TGT flows, where it called to kernel verb just to pass some parameters as NULL to the user create QP verb. This series is a small step to make clean XRC_TGT flow by providing more clean user/kernel create QP verb separation. It is based on the "QP allocation" series. Thanks Leon Romanovsky (7): RDMA/mlx5: Delete not-available udata check RDMA/core: Delete duplicated and unreachable code RDMA/core: Remove protection from wrong in-kernel API usage RDMA/core: Reorganize create QP low-level functions RDMA/core: Configure selinux QP during creation RDMA/core: Properly increment and decrement QP usecnts RDMA/core: Create clean QP creations interface for uverbs drivers/infiniband/core/core_priv.h | 67 ++---- drivers/infiniband/core/uverbs_cmd.c | 30 +-- drivers/infiniband/core/uverbs_std_types_qp.c | 28 +-- drivers/infiniband/core/verbs.c | 216 ++++++++++++------ drivers/infiniband/hw/mlx5/qp.c | 3 - include/rdma/ib_verbs.h | 8 +- 6 files changed, 166 insertions(+), 186 deletions(-) -- 2.31.1