Article View: linux.kernel.netdev
Article #13456[PATCH net-next v10 0/4] net: mana: concurrent HWC requests and dynamic queue depth
From: Wei Hu
Date: Mon, 09 Nov 2026 15:44
Date: Mon, 09 Nov 2026 15:44
73 lines
11511 bytes
11511 bytes
This is v10 of Long Li's four-patch HWC series, rebased for the reopened
net-next tree. I am carrying the series forward with review fixes and
integration work. Original authorship and sign-offs are retained.
The series supports concurrent requests over the MANA hardware channel and
rebuilds its queues using the queue depth and message sizes required by
the PF. It prepares ownership and teardown, gives each message its own
completion, adds concurrent request tracking, and enables dynamic sizing.
v9 was deferred while net-next was closed. This revision resolves its
conflicts with the upstream throttled-EQE support; it is not an unchanged
RESEND. No new actionable v9 review finding was located during the
reposting check.
Changes since v9:
- Rebase onto current net-next, including the throttled-EQE support from
684603842b78 ("net: mana: Add support to process throttled EQEs").
- In patch 1, use one acquire-loaded CQ-table snapshot in the new throttle
reader, matching the existing normal-EQE reader and HWC table-withdrawal
lifetime contract.
- In patch 1, fence the HWC EQ before destroying its CQ, but keep the EQ
allocation alive until the CQ has detached its upstream child entry.
Preserve the upstream generic CQ detach/RCU implementation and allowance
for empty HWC CQ polls.
- Refresh patch 4's context while preserving the upstream doorbell
client_offset argument and address adjustment.
- Patches 2 and 3 retain their v9 changes. PF-directed queue geometry,
healthy-admission waiting and timeout/cancellation policy are unchanged.
Validation on this exact revision:
- GCC and Clang W=1 MANA Ethernet/RDMA target builds for the unmodified
base and each of the four intermediate commits.
- Strict netdev checkpatch with an 80-column limit and whitespace checks.
- Bounded actual-source userspace regression tests for request ownership,
admission, retention, teardown, initialization, rebuild and TX budgets.
- New GCC/Clang ASan/UBSan tests of the throttle reader and CQ/EQ cleanup
on patches 1 and 4, including partial setup, prior fencing, table
withdrawal and negative controls for the integration changes.
- Source review of ownership, IRQ/RCU readers and failure paths.
These are static/offline checks. No new full-kernel, hardware, runtime
or performance qualification is claimed for this rebase.
Previous revision:
https://lore.kernel.org/all/cover.1792679388.git.weh@linux.microsoft.com/
Deferral while net-next was closed:
https://lore.kernel.org/all/20261022082333.5a259426@kernel.org/
Base: fa5196392691051963726787944db872420dfa75
Long Li (4):
net: mana: prepare HWC ownership for safe reinitialization
net: mana: give each HWC message slot its own completion state
net: mana: support concurrent HWC requests
net: mana: add dynamic HWC queue depth with reinit path
drivers/infiniband/hw/mana/main.c | 19 +-
.../net/ethernet/microsoft/mana/gdma_cdx.c | 5 +-
.../net/ethernet/microsoft/mana/gdma_main.c | 162 ++-
.../net/ethernet/microsoft/mana/gdma_pci.c | 15 +-
.../net/ethernet/microsoft/mana/hw_channel.c | 1022 ++++++++++++++---
.../net/ethernet/microsoft/mana/shm_channel.c | 58 +-
include/net/mana/gdma.h | 17 +
include/net/mana/hw_channel.h | 70 +-
include/net/mana/shm_channel.h | 10 +-
9 files changed, 1157 insertions(+), 221 deletions(-)
base-commit: fa5196392691051963726787944db872420dfa75
--
2.43.0
Technical Details
Message-ID:
<cover.1794208055.git.weh@linux.microsoft.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359394-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359394-linux-kernel-netdev=dewy.ru From: weh@linux.microsoft.com (Wei Hu) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v10 0/4] net: mana: concurrent HWC requests and dynamic queue depth Date: Mon, 9 Nov 2026 15:44:59 +0000 Organization: Usenet Network Message-ID: <cover.1794208055.git.weh@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="391362"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:E5f4wBzwGbQXATvQDWzEoJc9v+E= sha256:axowyC2gUoFQNcDTODFQDyYRlBtg1U9ub0pavHaIQfw= sha1:PJRvkJPw/X+QXLWmbq6Efrf1jsg= sha256:KJIeo1CKNFLwWwVxRS7BH0x/IW9oScVg5Wzw58rA32U= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id DE4AF11385C; Mon, 9 Nov 2026 18:48:39 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.microsoft.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hdTIqa478pWn; Mon, 9 Nov 2026 18:48:36 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-359394-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 280D0113847; Mon, 9 Nov 2026 18:48:28 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 014C6A2746; Mon, 9 Nov 2026 15:46:00 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1794239127; b=ZRvah4VV5i1cBJsEjdnDdts7lWo2aZEP/QcrXn6Oe7BRzMTJvPMze4+KJQZOlV4XnNK9 Q5hVPsKbiFrkP/MSFZPL0zJIR2aj3oIHwsQ/1Ci/Z0s5j10Vao/HZLPgr2fu2gblwzIRL rDI0Jyk+a8wSYdHD9hSzKghksTsrnqkkWmGZDpVVngdg6USmoh5AekNrC403swdVvHzWs A46tzx1qClPhw6G/CbFlvHuuwnl50AfPND4qM334uRd+M0yGAnpPUxXa8Nep1YUKixrfr 9Jnsd+47JWcNYlLaf0uJ77fst7jbTldR5ZgHe3rQgMLwKoiFSDstC+DCZXhYDP8K+8A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794239127; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter: DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=pbAX5+86YsSWRAJ9Rdk5jM3to2XAOPxy7BWdPqEtg24=; b=VUc2lrAn10u3nV2ZiLxhIxL8Xyq3euqLS6MUKIfzkzd9/xrJ7OfbVg3javfNBL36/JFs 7LHCua3YaHfZpu2eykaCO8dJ5M2x3gKHGaxQrzBFRxPQB5/KA7n16uRS/YGjbCaP8V4fT i465RH2OjhnAU1I9JkVX94syn1S9y1UoNKUBnK5AyaurFNV9/xnYRGXy0ZDvmFZ5DckoP +YQUY5vRIhwfdOL1ZmokxW+YyNR6j5iG1OFKR8Lvwy8ILo8uRFWm7HTJzXlfGVmvP9+W/ Ra9+/whmsbuGTUgsrxyoZGKKpjw5CaLwuWnNlPDxyGKaV4YrjUywDDjhebBO1O9egtg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=ILB1aHmF; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; arc=fail smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE40C6083613; Mon, 9 Nov 2026 15:45:26 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=ILB1aHmF X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794239121; b=1M1oML6pB9YUzYAEeXm7Dhlc1Qrlum04shGhwO+w4u2UvQz4N57nYOMpcVdsAfdQOV6I sjFyskkj++STo5/E4tFfyil1cm8dloTTQolARluf7bSmxbdVFiBthpPJV056wCVTNRy+F aFVbtFVNFM9e5bR92Nvwdz9t80BmYJBUJLAjpmV12XUDSe7upppDnuXW9QwOe2kzxjof0 AMcCM0nhrSu/CYcnWdMsH5ueQoXKS50Z+JmBFCQfX/0SdM7PqJkw64GAkc6wjAI4e+jBd KvMm5H3vSIDZ1rLL9Qh/2/1siwBf5q+DmVdu69SFDi8kx1ss2goyrkG6SDN0uxNtG+Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794239121; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-Spam-Status:X-Spam-Checker-Version; bh=pbAX5+86YsSWRAJ9Rdk5jM3to2XAOPxy7BWdPqEtg24=; b=WaC749+PkJXIAmL/A5OmX8/DvKtYiGvyt0XoTkJ1dZhdiSjmBZh6Anhtf+MN42Jf36wS 1ryhEbjM0kJwg0/YTtdfp7kobFYBEQlrNQ0Tc5PuYYT8bXTfWxenXO3luNYhYRtiRvDsM OyAV3bYcEjhncViS1l0SHNX5JJ+TWfES727E4B6Yzc/wfvNOf9CCFd56NOgQx8kTfvZGU WllPe1aU0MdrClLgFSKymSOwI7HJi9qALnw5Z/8gsB4B6HN/Xu6YmmDCHsQYUF/CR+uBE EW7VRj88LabPRhEtPAzDjiGhWWEtZvZgfZV4NDeZGYuf+umKhVVEhUqXmsTOvP3AbWQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=ILB1aHmF; arc=none smtp.remote-ip=13.77.154.182 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C02A606EEAA; Mon, 9 Nov 2026 15:45:20 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1C02A606EEAA X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com X-Received: from weh-cvm-dev-vm.y50bckvjo0hefgfnzfztsfttff.phxx.internal.cloudapp.net (unknown [20.169.55.37]) by linux.microsoft.com (Postfix) with ESMTPSA id 65FF820B7168; Mon, 9 Nov 2026 07:45:16 -0800 (PST) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 65FF820B7168 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1794239117; bh=pbAX5+86YsSWRAJ9Rdk5jM3to2XAOPxy7BWdPqEtg24=; h=From:To:Cc:Subject:Date:From; b=ILB1aHmFc3oRM3IidQOxV5zsnFODk7JrgWZqnt9oF/ccowEfUv/RT+ujya2OBHaYN xW3e2AH3RDR3pgpojc7sQU5RX4vh+Li3R9VZB+1GYsvFGVdosryiOBSkAehpVab95o BYLfuZn5ozxJpR7CS6bkUzpfWYkuog04yV4jaeqU= X-Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, gargaditya@linux.microsoft.com, kees+treewide@kernel.org, kees@kernel.org, mawasthi@linux.microsoft.com, weh@microsoft.com, edumazet@kernel.org X-Mailer: git-send-email 2.43.0 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list