Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1006114lqt; Tue, 19 Mar 2024 10:00:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVS8bwjQkX5je/NyGKrJeKKlW3FeHDE67GrQopU6hOxLAnkcOlNAMreVTuWKndI1s0sMPzlF02G6hptx75qDGlEQMp0f5Pkg6CCw4dhiQ== X-Google-Smtp-Source: AGHT+IGZvyUQQAydtlRMsDSfztxsh3rOyJvzHxmi4m43Pr32P3L67c+DWKNMf+9dy18krZYHgWrh X-Received: by 2002:a05:6a20:4f22:b0:1a1:8899:a2b0 with SMTP id gi34-20020a056a204f2200b001a18899a2b0mr10942314pzb.52.1710867646558; Tue, 19 Mar 2024 10:00:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710867646; cv=pass; d=google.com; s=arc-20160816; b=Ccx42f01hPmlxqKVqHzBowFl3cZbMdqcdSgZ8jxv+zpykkFS8HOuvAj1S8VfhZdiBe V8sRtYB3ACykXidIM7+SGtjRxbuOial5HoVoTvLrKqmThFm+KeHuoG7FYdUfGhkOn7tA OihUBhrAnxH/UwkzFXy5BpeUhx08KqN9/FMI5aUxbkqbE3F6N3xBX/51UrRNebQChtF0 pBFl6BFRDRbFfTVRjw2dIoaIcjF/X5IhYkBMcR8IIA4BkGCyoxzWpjBO1c9GKfFF+ugu HxN/AwpPGqUKzycIA4yzbqKyuJecElnfVe6QjLrNJ2Ok3eB/aej/3PkwOJktcOyfI+Ti rJiw== 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=l15ZMQHRWNCIqM+/Lh6WWvV8nS7fyimXjy0U0UdXknE=; fh=ujksmUrBEjpGhQjWbrjZMx9PDXUXbYR/j4y8MAq1x1o=; b=AInfT2K9Of3I5REzDgZ+JkytfudGEhrHX0CH+AUTNpRxGOmMbd6ibxq3BQW1BG1j1x kMPtB6/Kif+2Sr/7GZWt1kGlf0VLfjmWvEkr+pDlI9UhkqlkLkpFKEvCArgIBOgTZnI5 mYNMCBNHF/yBCvNOWHsVrl8BgNPzmDJ30YTgFLQS2hAHANOxyfTCpQs+K/WA0HqL75lb TWlqs6soI8nBvVWYvwsGpLVQLoY9qgVsobbtK+nHHURs0Fkf3ur9xCb9Y9QapQ6T8i9Z 0GaCE20slHmMpISH6alLDnnUFC/sQvh8poKMm1umyWX7F7YDSMBsMOmNeJx5TxND4cRZ B+AA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=OLhyahVU; 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-107874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107874-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 sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k9-20020aa788c9000000b006e6ac027157si12087212pff.103.2024.03.19.10.00.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 10:00:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=OLhyahVU; 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-107874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107874-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 322CD285004 for ; Tue, 19 Mar 2024 17:00:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B683F18C05; Tue, 19 Mar 2024 17:00:27 +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="OLhyahVU" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9604F2209B; Tue, 19 Mar 2024 17:00:25 +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=1710867626; cv=none; b=PzP0YueEd3sna/JjgHIEVEx55YrDH5Rk4e5e/7eKomgyrXCVPLKMfXslvgkKDcyiyZIzcn7tdOQuSHbwUbV4Xv0/5TPP2CRUY7UkQ9N0auWQFpKuy8si4r3B+JavOyLfp6/4lbBLIaoFkxJyEomV91O0zO8ZlyMknD3VcMdd3m4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710867626; c=relaxed/simple; bh=CNCxoIE+1gPOmlDVw3CbyXIXXBCrmO7yEk/7ckcCOQ0=; h=From:To:Cc:Subject:Date:Message-Id; b=dghpXQE5yLt2jblfOZWQKFDM5pW3d0O0Cz+0g9vVRXh4QDThbxqD8lSWvyZ7dPURg9YMVDv48mGvceSNlh5/TGENCdry/+VCzihux60D1tsd//3y56/ShIfZHhFK9YGv5cD9kQdWGFjaLtVQlppaf1WRPtaDKISAyri1LQ2PH1c= 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=OLhyahVU; 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 3BF0120B74C0; Tue, 19 Mar 2024 10:00:25 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3BF0120B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1710867625; bh=l15ZMQHRWNCIqM+/Lh6WWvV8nS7fyimXjy0U0UdXknE=; h=From:To:Cc:Subject:Date:From; b=OLhyahVUc44J92zxgPICtslFoYLMrP1WEDqe7EimgUIpkdN8p+3fVzsXK39Z/VTvW uxaVh2oaEOVOk4SqhVCNooGaGHvPMeETZGW4IJVmbtY5Wjyys2X2tNR6/zof21rW9P 0uhOGlnBgEOquSWFN77v7y5bhFnRFT52ZbRb60qg= 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 v2 0/4] Define and use mana queues for CQs and WQs Date: Tue, 19 Mar 2024 10:00:09 -0700 Message-Id: <1710867613-4798-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. 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 | 43 ++++++++++++++ drivers/infiniband/hw/mana/mana_ib.h | 31 ++++++---- drivers/infiniband/hw/mana/qp.c | 86 ++++++++++------------------ drivers/infiniband/hw/mana/wq.c | 31 ++-------- 5 files changed, 107 insertions(+), 136 deletions(-) base-commit: 96d9cbe2f2ff7abde021bac75eafaceabe9a51fa -- 2.43.0