Article View: linux.kernel.netdev
Article #6460Re: [PATCH net-next v8 3/4] net: mana: support concurrent HWC requests
From: Wei Hu
Date: Thu, 22 Oct 2026 14:44
Date: Thu, 22 Oct 2026 14:44
51 lines
10972 bytes
10972 bytes
Thanks for the review. I will respin the series as v9 with the following changes. On Tue, 20 Oct 2026 13:36:32 +0000, netdev-bot+sashiko@kernel.org wrote: > Before this patch, admission could only block here. Every command that > reached mana_hwc_send_request() was eventually posted. With > down_timeout(), a channel that is healthy but busy can now return -EBUSY > without ever sending the command. Agreed. The independent admission deadline introduces a new failure before the command is submitted, including for destructive callers. This is addressed in the prepared v9 patch 3. Admission uses a bitmap and waitqueue instead of down_timeout(). While the channel is healthy, a caller waits for a free slot rather than returning -EBUSY because of contention. This removes the congestion-only failure that could skip a teardown command. The response wait for a posted command remains bounded. > Can this choose -EBUSY when the channel is hung? Only the permit holder > raises abandoned_msgs, in mana_hwc_wait_for_response(), and only after > its own completion wait has expired: The remaining ordering, cancellation and logging cases are also addressed in v9 patch 3. There is no separate admission timer to expire before the holder records abandonment. Slot release, recorded response abandonment, cancellation and channel stop wake admission waiters. When no slot is available, abandonment or cancellation returns -ETIMEDOUT, preserving the existing recovery errno; a stopped channel returns -ENODEV. Healthy contention does not trigger recovery. Available slots remain usable for best-effort requests after cancellation. mana_need_log() suppresses expected -ETIMEDOUT/-ENODEV after cancellation or channel unpublication, while keeping live-channel and other errors visible. > This is a pre-existing issue and was not introduced by this patch. This > rejection path reposts rx_req, but the range check before it in > mana_hwc_rx_event_handler() does not: The missing RX repost on an out-of-range message ID is pre-existing. We will address separately. Regards, Wei pw-bot: cr
Technical Details
Message-ID:
<hwc-v9-v8-review-20261022-patch3-0ea848289b23d97a9133@linux.microsoft.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350609-linux-kernel-netdev=dewy.ruReferences:
<983b5719644379806ac278b45cfb7cb70d2935f6.1791998462.git.weh@linux.microsoft.com> <179250339266.3135.15035365058593192217@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350609-linux-kernel-netdev=dewy.ru From: weh@linux.microsoft.com (Wei Hu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v8 3/4] net: mana: support concurrent HWC requests Date: Thu, 22 Oct 2026 14:44:09 +0000 Organization: Usenet Network Message-ID: <hwc-v9-v8-review-20261022-patch3-0ea848289b23d97a9133@linux.microsoft.com> References: <983b5719644379806ac278b45cfb7cb70d2935f6.1791998462.git.weh@linux.microsoft.com> <179250339266.3135.15035365058593192217@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="233120"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:pLX0mL5OTAVav7xMRknY3vegfXQ= sha256:z5Hml8ISvbHLx5JjZE6PTFtzqTBcNsd1sbCdE+lqZlM= sha1:GsyKEf9xYtATnAkHKz6nE4nZHw8= sha256:eOplNUONCiYLyupV6QLuYmmlL0CBjtyy5HnS4Br1mdM= 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 DB5901112A8; Thu, 22 Oct 2026 17:45:39 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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.25, 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 jbY62pTCWQO6; Thu, 22 Oct 2026 17:45:37 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350609-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 0E056111277; Thu, 22 Oct 2026 17:45:29 +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 E16D536342; Thu, 22 Oct 2026 14:44:23 +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=1792680260; b=JJZMe7FSNp9vcD+XNPcarPDezsArmlkU7BF0HvCT45NMgRnTJZXISZPozfdML3UrYN7n sSls3nuT7Kog4RO7xI6Dhtn20JfMehK+k4yC7ewmgsWLstqziZQh8zD/mD/oVlcshCbWb oBsdKqsCxZ2HIt5HzJlKLQkECWj7GXOire5mn8LtY2+2EKpXh9vMiy7orJBXzBSfg69UB 2QcOHsAiV0CZ330gI9J9OBx1ql2dtrsldVyn2s0NU365pcrv6CLvAe4a/cxk12VS/dICE qmY+Ch8dB0tKcDZ4HTn2R98wEBE2DQcunCntImWAfZScH11tY5skRgpNemGLbGE6TgQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680260; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter: DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:Content-Type:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Transfer-Encoding; bh=ayP+q1gm7UL5keoQcXEPc/Rm/6pM2kBzEPnRBgonUmA=; b=wvHXy7VbCgMruE59imLkEsjsc3kQziStDvkU+WtiDK8vQpFO9oIxFlPSM1tZGuGzkUCG s7NkXI4rmyPxHKcWJ30J9kFz0dmigGUrMdqNlvmwLsMwPrLBtSDDXXUjlWfzdYuwtcQ09 KImfg4bThLneWuoXFzc5Wk5PN4vlKyrt9Ex6dDLL9JIwkmD0uHZVRDWmDu9ggRDkxJsCd VLYT/vC1wos4lV1jouiyMwFZj5CwaXyh3Lj5b7Vxty6HCoh+RJumsujDaWahpxtUz32g3 fuVa6CNqp1tZ8HOtWriBDcIjTN1ZHNJyC2/aBPfLV5fIW+cPrqqepD/kcVuEuppUaqQ== 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=P9U4Guc9; 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 87E66606A32A; Thu, 22 Oct 2026 14:44:20 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=P9U4Guc9 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=1792680259; b=Ed/35QZGVj4QOzO0UMd+0u9PXXRT1O8YZGPS4wtxRyRyEQJxQzmVxtIjsfLbl+p92Keb 78sHUfwFmyw7SYFyVGeEUxjcfU+2tTQ/U/d8DKs8QLoSeapEuKk9CiYn+MLF8f8e+K0hf cvYO3cfL8uQQA92y4BbpK4PPSMoA009fgVHZX+iwaIv5ZUrZ9ptF6Pdi1IpiXLtCCmpuO WhqiTzhS/GItczNINWKnyyJGITayB3tjZYqRroAVPj/hVB92ZRWPcfCE6dCk+j/0RXVl3 pFUyAWlIgBBsB+K0OaVJJRXUr+JWoq9vusHYhXAuv4WeDTt0eRo0NFWP8u8WMK2Aeng== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680259; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:Content-Type: MIME-Version:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=ayP+q1gm7UL5keoQcXEPc/Rm/6pM2kBzEPnRBgonUmA=; b=EtqYyJG8Y4MZ0JNhX5w2fPp7z9M3Rj9vOcCoElOe+XUIb0uMbic3YxN3YCv2m32tvzOq 9GJ1k0TIyWjtGGyY48ejcn92XQFU3BjvC/RCWCCZE/54qrP5q07I3IVNHmgfxAC8sLH2w GMf8OdOa1/agtVL6T6iDqHcdYeDjiTzYEvdUfBn5eqUK/GoA677vVl7X3ONSFnNFr5aUj 0jCFR5M6rC/1xs2mjKp6MK1qfQSNtOvFo6uUDf980WUkaus1E5HCYvbDhvdAzLRLum+Yl NPZ/i2W1ikWTbzXlv2F9WUVaXoU1EMI0jVhg+dR/yRUNryhOXh3CCTtxw6BO73Nxr+A== 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=P9U4Guc9; 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 6126D606A321; Thu, 22 Oct 2026 14:44:19 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6126D606A321 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 B2FD820B716A; Thu, 22 Oct 2026 07:44:09 -0700 (PDT) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B2FD820B716A X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1792680250; bh=ayP+q1gm7UL5keoQcXEPc/Rm/6pM2kBzEPnRBgonUmA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P9U4Guc9SeDXckcRjc6z+MBAt3t/FXMyYQ6IEINfj+oRs2TMoe0hbK88gGTvJOlvT yGYwyma1seblb/zAcr2nVwKTOZ5rJHUA8jgcPG9xzEhbaqbY8PbNLeEp1BJkIyPL9k xm6WyxDWgwqcPNgFzjcFoPFM4S29WgcJBKmOIHac= X-Cc: longli@kernel.org, kotaranov@microsoft.com, kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, andrew+netdev@lunn.ch, jgg@ziepe.ca, leon@kernel.org, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, shradhagupta@linux.microsoft.com, horms@kernel.org, ernis@linux.microsoft.com, stephen@networkplumber.org, 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-In-Reply-To: <179250339266.3135.15035365058593192217@kernel.org> 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