Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1217904lqe; Mon, 8 Apr 2024 02:15:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLO6Gp9PbKHX9e63ExFZ4RTYzhgaoLEKWdheSn5a0y0lOnjnRZ3KbyuR/Z7h7H+EOlHx2BgF5yk3+sHzVd1shq222oN3uf1Mn2v5Rjzw== X-Google-Smtp-Source: AGHT+IH3IkSBxUJugDA+m9ZD8FENZfL5eXUBDOxg7Cu8aAKOVb9vcjV3AWCSUZ/p7IptTsrASoxn X-Received: by 2002:a05:6e02:18cf:b0:36a:1725:e123 with SMTP id s15-20020a056e0218cf00b0036a1725e123mr7419735ilu.14.1712567744991; Mon, 08 Apr 2024 02:15:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712567744; cv=pass; d=google.com; s=arc-20160816; b=UgyxCYze3EkWPDhGdm0BivcZAziDvhgcVcHj2qsOsmWzlhRoc4Ji3IiWqDD372UAE6 WYs4l3nt0JMaB4D+LQ/B1mmmZliVqP3jeKXrljtd2n/iL9dQrjeYCpNK5fUnoIhvK5qx f+0fDAN7CuAETRoWycV08COZOcZco0qyShKf3zM0noZVpkoIvE8TeGtjJJUnswrK3CzL 6z/U3n3bI4iJa4Z++5zdsLy78JFwBwN+pIkmB9tR5yFoyYvL0OMyKoCgQ11LMsv2+BpC 9SfDZrf/LkrXFYzn+sQ+cIIfs1YhqsowitMC7mFxOhXjt+ptm3Jc1/dUveoIMMyDWOve OJXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=uyx+17NQbYDx2S0u8DJ8Vod3JMP7Po52Tht1yNaGGxg=; fh=ujksmUrBEjpGhQjWbrjZMx9PDXUXbYR/j4y8MAq1x1o=; b=teDQ6JTTidDSyksYJFfw2+StAe3JvxmYLSEXopJShJQlJ89ITl6mjvUVjZ3r6iBA9K Ik3WVmRz7BTBxqCdEthuGNxtpDJ5Z3FlFgg7YgCLIEZFCvdSX20F2Fc6vkP1CXS5RIZU YvI+fqO8K6ag/FvWHOU/1QcbBn1c8Pz+N85O7gbfVZODfQ2NwkXwz4g5NvjpGozOb+na puLa3aluUTToH7yVxkMPT4OLdR4X6REL7neMoHmx6BAlXQh9FNrAfwn9StZ2BVpAuiRN pE5GSWVtPLR1ECue/teDFuv2AoXthMc5y8XmL2SkX8H3b0qBPOZSUXisC1H5V8W/N8R1 y3ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="I/1NHMIc"; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-135116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q30-20020a63751e000000b005f0793e3ca4si5969401pgc.275.2024.04.08.02.15.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 02:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="I/1NHMIc"; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-135116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E0A44B230FE for ; Mon, 8 Apr 2024 09:14:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AD3B47F48; Mon, 8 Apr 2024 09:14:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="I/1NHMIc" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A696446B7; Mon, 8 Apr 2024 09:14:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712567662; cv=none; b=fmpIACqpx2GwL4gJDqs+yKSvFIpbmydYAnMDFTODIRBZLUye8a+BwZsa6Xh8E1anqtnsbR4aVi0EKLs9EHWr/LfNuHKtTm98P7yQyFvL5dSrlmttBr3Eo+jK+KORu7tk+Zoj3jLGu0S/Ts5HZe0wVQwOdkoqohBUlrujDDZ8xx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712567662; c=relaxed/simple; bh=MdZ0uX/SN5I+7Rk9N5NLVGUpBmvC9Mp310Sh65sVcbM=; h=From:To:Cc:Subject:Date:Message-Id; b=p13GO3wJ78cmzVeosIdi94abcX1eADdRra69grn1FlJl/G3lMhM1cXRaU3YZJK/NyN1VFEth9/+gFMU6bx1F8FNjmInpstsz7ZdtunpvPHlHsd2YXjP0B9f/pZy+/dzgGoVnzx6FQGFagfmTlLrI5VJez86DbsoSAPt08AhTS54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=I/1NHMIc; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 78F7220EA430; Mon, 8 Apr 2024 02:14:15 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 78F7220EA430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1712567655; bh=uyx+17NQbYDx2S0u8DJ8Vod3JMP7Po52Tht1yNaGGxg=; h=From:To:Cc:Subject:Date:From; b=I/1NHMIc0FjDIS/+aB4s01PcfupY3dhhKPQZKanVQkQMLLnHmRTRAD7Su4lZZzfZH N3lWpczrp9Mk4xUjKZPJizjDpB9+oyMFV10JHU0sYa61zg3+lePQfN1fcz2HaUSlvr d22/Rf6whhSwIWkDVJpnmipDWWwEH+EHWU70D3K0= From: Konstantin Taranov To: kotaranov@microsoft.com, sharmaajay@microsoft.com, longli@microsoft.com, jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH rdma-next v4 0/4] Define and use mana queues for CQs and WQs Date: Mon, 8 Apr 2024 02:14:02 -0700 Message-Id: <1712567646-5247-1-git-send-email-kotaranov@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Konstantin Taranov This patch series aims to reduce code duplication by introducing a notion of mana ib queues and corresponding helpers to create and destroy them. v3->v4: * Removed debug prints in patches, as asked by Leon v2->v3: * [in 4/4] Do not define an additional struct for a raw qp v1->v2: * [in 1/4] Added a comment about the ignored return value * [in 2/4] Replaced RDMA:mana_ib to RDMA/mana_ib in the subject * [in 4/4] Renamed mana_ib_raw_qp to mana_ib_raw_sq Konstantin Taranov (4): RDMA/mana_ib: Introduce helpers to create and destroy mana queues RDMA/mana_ib: Use struct mana_ib_queue for CQs RDMA/mana_ib: Use struct mana_ib_queue for WQs RDMA/mana_ib: Use struct mana_ib_queue for RAW QPs drivers/infiniband/hw/mana/cq.c | 52 +++------------- drivers/infiniband/hw/mana/main.c | 39 ++++++++++++ drivers/infiniband/hw/mana/mana_ib.h | 26 ++++---- drivers/infiniband/hw/mana/qp.c | 93 +++++++++------------------- drivers/infiniband/hw/mana/wq.c | 33 ++-------- 5 files changed, 96 insertions(+), 147 deletions(-) base-commit: 96d9cbe2f2ff7abde021bac75eafaceabe9a51fa -- 2.43.0