Article View: linux.kernel.netdev
Article #21114Re: [PATCH net-next v11 1/4] net: mana: prepare HWC ownership for safe reinitialization
From: Wei Hu
Date: Mon, 23 Nov 2026 15:21
Date: Mon, 23 Nov 2026 15:21
27 lines
9759 bytes
9759 bytes
On Sat, Nov 21, 2026, netdev-bot+sashiko wrote: > Should mana_ib unpublish the slot, wait for a grace period, and only then > free the object, as the HWC teardown path in this patch does? The HWC teardown protects the table itself, not the lifetime of each RDMA CQ in it. The individual CQ race exists upstream; v12 leaves it out of this series. > Can this leak repeat without limit through the existing PCI recovery loop? Yes, in v11. In v12, if probe cleanup can't get a DESTROY_HWC ack, the driver doesn't schedule another PCI probe. If teardown fails during removal for a driver-initiated rescan, it skips the rescan. A bound device can retry the destroy. Final removal can still leak the last set of HWC buffers: the PF may still be using them. > What happens to setup_active when the PF returns possession with a > well-formed ESTABLISH_HWC response that carries a non-zero status? It stays set. Once the VF has submitted the queue addresses, an error reply doesn't establish that the PF has dropped the mappings. The VF still attempts DESTROY_HWC and waits for its ack before freeing them. A reset notification isn't a substitute for that ack. Thanks, Wei
Technical Details
Message-ID:
<20261122064231.hwc-v11-netdev-p1.weh@linux.microsoft.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369523-linux-kernel-netdev=dewy.ruReferences:
<f94c7f71d4228c7c30838f9c901b429ec5b1428c.1794751992.git.weh@linux.microsoft.com> <179527856753.3135.1812581824985082274@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369523-linux-kernel-netdev=dewy.ru From: weh@linux.microsoft.com (Wei Hu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v11 1/4] net: mana: prepare HWC ownership for safe reinitialization Date: Mon, 23 Nov 2026 15:21:44 +0000 Organization: Usenet Network Message-ID: <20261122064231.hwc-v11-netdev-p1.weh@linux.microsoft.com> References: <f94c7f71d4228c7c30838f9c901b429ec5b1428c.1794751992.git.weh@linux.microsoft.com> <179527856753.3135.1812581824985082274@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3912471"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:CM7nmqREHrlD1NVhJh4q1Naoq3Q= sha256:StYvOxjxSPoLrVGQscNSShv35T6yCWoTZ0UlNm6MgNU= sha1:+3+hZhKO85+nPI1t8wGk8Lv9Mm0= sha256:f5EI7K5ENKmoMnGG7f5y01okshpBmIi4t0eBHmQ8UYM= 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 B8B5B125DBD; Mon, 23 Nov 2026 18:22:26 +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 gWNAM1TbzsE4; Mon, 23 Nov 2026 18:22:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369523-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 5C9FC125DB9; Mon, 23 Nov 2026 18:22:12 +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 B4A732C2B1; Mon, 23 Nov 2026 15:21:58 +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=1795447314; b=lqMZYF4ktNUuodJOGaSyhQwehShn+TkuvjxFOHrJaJV5g4Pzhk9HZ7gjG6znLVRLm6g7 z2c0tBBabJ4FD1EBJBiozMEnDkL3jSfVy5RJ2GevzmU6HzA8lPwiSRmMg+dAxjWo9G0sT JGktyZXa46SMQBL9aDtl658Yhxq0N6ZEHRimpJBCs/gWlHEyo1mOh7olF0hgygbv6vFyw 3kq/wrGubT/kXyaS8UilDV+9TwdnCcxs9+Wo/fN3vR7zDSpZatlOU5vXx9isqkBRCJccW nqSqDawFPK3SPy4GuSBJS0RotQYIAYAThGi5TuOBdEvRMPv6z/FHJWdlmyAAhCvhjyQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795447314; 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:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=FDHhwxCxCbXmvaM7MXxMxxf1AWoTVfTVQx5EL51XTSY=; b=NXYJa+47YfVRZksM/+thEpdor9XBpBZ2mT5ar8c2f+rsUZrO//R6cmi+4pFJWOt4j2nq ckOyibADSvoMNAZo9Cu6/3jT/wdjHRrVcXzBnd0+2ohJsKApGrgkNflGhCxDaD+l5WNrY S0ioHeNrp8gmzSt0oJK3AVN/ixHIBTPDIish+h6/6OaaDNJvzrObEYNTp9wa66IPHP6iQ jF68EiDzDP99ajEFPylwSrr/k+XSlNSORIkDmXxnnNSjEhcAR6KPrCp8k4hUNINtAmgGS DtSu2kd2/4p2cuCSahJCfn+gtB+gXhlsamKebS/A97MdqRmT8f5a9V7JJerVIitmPvA== 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=J1P3PFoa; 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 2528F606A690; Mon, 23 Nov 2026 15:21:54 +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=J1P3PFoa 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=1795447313; b=Th2Qtz9gvd8qHl5sfufMbif/38Ku2xxvJs7CjyfOL/PfWX09Axu0fSNrCK7i61UjE6CE cu5YHuc6BrkTJrSenly9ILLgRFn9w7vn4r8/fbrXvjRZgMAhCoNccWZyvgpJonv250Uco 6E7vBykVafigbMrX98WAZCSrOxJjh3CpJ30nBHdTKvglswENopvlZbO/x2HRboiaRlvK1 Ruy3XF/TdI6Pzjxh+DwgIPeW4PwnAQDV3l7ZYkftsutXeRRdn3fB8TQNtZ8Mpf25JFDQG OwmKTCmJ3r9t+4/auFnthLvVfiZ+V1LM2ZUx7oOt8M6fHXFRzhL1o5DskhOn6TfNXRg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795447313; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Spam-Status:X-Spam-Checker-Version; bh=FDHhwxCxCbXmvaM7MXxMxxf1AWoTVfTVQx5EL51XTSY=; b=yYSuOLPysBvNcF5tNTNBjcSzlnMiTUAnyQhJ+sOfBJe62Rjabv+HFDPUDtEw5dVlMx9j QO1lzKqZsXR2PJ9pggvg9ogqu1iAkVfG26qx/aCo3NLS7m+DeQuYKC6rs4YJe8Y7LCjRm 5RiBnpsRBIcEi+6aI6hIoPGebAv3+2KUmuoyRNuKDZs/5PyOkNsD3dajbiUaSIirfsvPE 2Ll3Ymz97ABJfsZc5EDBLu8GcRuATOO4uIGFt8uvRWG4FBbWCEjNLfNSlBJY1FQZRIg+6 xOq+nZjbJLSmBGHPudO8TND3aZRlTyKSEH7sCJHlVhLqQ2Bj8198zrkLUCubdyH2TdQ== 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=J1P3PFoa; 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 F3441606A31F; Mon, 23 Nov 2026 15:21:52 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F3441606A31F 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 87B0320B7167; Mon, 23 Nov 2026 07:21:47 -0800 (PST) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 87B0320B7167 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1795447308; bh=FDHhwxCxCbXmvaM7MXxMxxf1AWoTVfTVQx5EL51XTSY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J1P3PFoa9nR7k2KaZQn4p3MoCICXl+phdl58ZUlBuX/wXLkMPyF1M6ne2cWYQ+n6H gpBWeFkU1+O/zbw8VIgfThH8iyxKUaCaa4NLLwCXPbM0lryhPuTH2z0kOpxjGv9br4 ALdYvK1B6Ch0CB/X6qb6ZfvKG/GjqRTum51UIGLM= 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: <179527856753.3135.1812581824985082274@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