🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13941

Re: [PATCH 1/2] net: thunderbolt: Stop queueing Rx buffers if allocation fails

#13941
From: Mika Westerberg
Date: Tue, 10 Nov 2026 14:21
25 lines
10354 bytes
Hi,

On Sat, Nov 07, 2026 at 03:55:08PM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 5 potential
> issue(s) to consider.
> 
> Critical: 0 · High: 3 · Medium: 0 · Low: 2
> 
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
> 
> - [High] tbnet_poll() (drivers/net/thunderbolt/main.c) can stop Rx
>   permanently when a refill fails.
> - [High] The new deficit-based cleaned_count in tbnet_poll() (lines
>   829-831) lets a NAPI poll that runs after teardown allocate and strand…
> - [High] tbnet_poll() no longer completes NAPI while allocations keep
>   failing and the ring is empty (the new `return budget` at line 936),…

I agree all of them. I will submit v2 with these fixed.

pw-bot: cr
Technical Details
Message-ID: <20261110142145.GA259790@black.igk.intel.com>
Path: mbox-mo1.pugleaf.net!news-lax.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-360313-linux-kernel-netdev=dewy.ru
References: <20261103125621.1111198-1-mika.westerberg@linux.intel.com> <179406690879.994134.8991092134542553771@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.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-360313-linux-kernel-netdev=dewy.ru
From: mika.westerberg@linux.intel.com (Mika Westerberg)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 1/2] net: thunderbolt: Stop queueing Rx buffers if
 allocation fails
Date: Tue, 10 Nov 2026 15:21:45 +0100
Organization: Usenet Network
Message-ID: <20261110142145.GA259790@black.igk.intel.com>
References: <20261103125621.1111198-1-mika.westerberg@linux.intel.com>
 <179406690879.994134.8991092134542553771@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="626561"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:VrZXXI6zYJ03ee8cbauyGEBWhZc= sha256:+yFgLF3fZpXh1Eroyo/Li0PsTe+p1DzGmgA8VtaCFUQ=
	sha1:7XMYQwUe+os4wOFk8tT0XgC70JI= sha256:AJxUEiCGDC8O7zwiMK7pkuc9oAkjkwH1ovcfM5KewvU=
Content-Disposition: inline
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 779FE113BD7; Tue, 10 Nov 2026 17:28:33 +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=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-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,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=intel.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 UEDiZgE9iU1J;
	Tue, 10 Nov 2026 17:28:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-360313-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=linux.intel.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 376A8113BCF; Tue, 10 Nov 2026 17:28:22 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id EE9A96209CC; Tue, 10 Nov 2026 14:22:44 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794320510;
	b=J8OJdJusEGJ7cvi6Q+Vu3cTcdjMT/tCu5X0xuQbMtlMRRRgjgM3MSaFvgSFv24VvMJaL
	 h9VIbCrtzbX5bcewcgSW7TopP6X/epCwbQlyrjIl/d6mdjPADE5VtpburWpIcOu2m1Cw7
	 k2AzewvexrxFPLY7v08kn49ADnHqbFtQhyiGLmtqkdo986htvnQQ8AbOqUG7hs4fwQyz4
	 utm3Jl8VSqaasud8VC3YFy4CP9bOyt5/kOoD2K8/gu9LlV6BjCVKQKs+XTZMWSt7iattr
	 4VkgcrP6DnO7BlKinczyZqzCiGAEg+d2FIqHsiC8whCffm13eniYQa2CaiUMw5fgmMA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794320510;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:
	 X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV:X-IronPort-AV:
	 Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:
	 Received:Received:Date:From:To:Cc:Subject:Message-ID:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Disposition:Content-Transfer-Encoding:In-Reply-To;
	bh=v3lhzBFBMq4LYga21qk5T8I5GmEaP6tqTiM53U9v4wI=;
	b=5ZamEx46K8hurFd9wzVs6kVtMej9uhz1eOgPiMmSQLAemmnBuyVrlq9EX35waW1TFtRL
	 Ppf9ZVRJ8iy71wmg3KcwvFh/H8y7IZOndaKi3ywbe5JYrokCI7d+MoZNT4EFRWYqY0MfA
	 dtXKYkjaa4orY96yMwE+kzjuLtNGr+a4OUrYDPbochyMIFRhg4KRRQebRwoQNV+N52c8n
	 QeELJdz9QDCKgKAlbYU6RQcWmxOGj8PuGGgV9ImLWRkVWw+DzY9xjJZAA5av8V4zYp4XB
	 cHM75u7i46eR22OX9mOuDbqwot1jeAQ0zrZ/f/m24q/yrqWEFUHe5q3GIt36+SuBXpg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NqPlxJvq;
	dmarc=pass header.from=linux.intel.com;
	spf=pass smtp.mailfrom=linux.intel.com;
	arc=pass header.oldest-pass=0 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 32B7B60A3839;
	Tue, 10 Nov 2026 14:21:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NqPlxJvq
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.9
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794320509;
	b=VSzqUrLNh6oSdf6ifwSIsqmZSPifyRm+flRbK8wTMo7OSgVV38Ffq1yqXMTgAdv1U59v
	 U84YbG9ZVJL9Bj2PGxNWsZ3jJ67ksJy3gOBxYBjpuBsmxkKuPSJPfafM+HVmR1uJ6qCdT
	 mOdXnRagZOe8x+Qp5bceoM7Pg/+5P+7Nuaal8+AH8dtrQ1Y9B9avwIuZ9I+Zq3SOFc3fr
	 d4JTO5Q2dSijzPyZ0JBUA0kTVxO+qsmiWp1m1sS+CsPQ0pcKUxeemSzP3u1l8t5WwsDdZ
	 w0f9WA6NczBI1Moyi19lJZTCNl5AhBR/fe5niZcj3+A1jGgmJfKir+riHCdjdww4Kog==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794320509;
	h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:
	 X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID:
	 X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To:
	 Cc:Subject:Message-ID:References:MIME-Version:Content-Type:
	 Content-Disposition:Content-Transfer-Encoding:In-Reply-To;
	bh=v3lhzBFBMq4LYga21qk5T8I5GmEaP6tqTiM53U9v4wI=;
	b=qBgBKKSp9TZMCvTFH3FOAVaIGWnroztVkjwJKntcHvtfA60wDuWVIzf5U5stE1rOMgAO
	 0rW97U6Ysax2Qbs/1b4MbdsU98Iqjpcs6i2N/Y8ICqqEqvr2miHFVlY8TmjfLjIOPmSYG
	 0RQyPQvK2ruE/kBlhPAAVVn8lXkONTls820BkqC8aeXFDAITqjLOAaKfwK0zXGQVeP4Hj
	 LczTZq10fp81d8q/RZtlM6AjQu4ix0gIX+khArJD6H5iTWufpRKWkHtYnsLr/3IZZW/zX
	 Or6K1/eZGCJoi6ivqkt8ohFC0GtbvRSmMwcRNc7FFcElipL4H/xWKQZp+JKwVsozrtg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.intel.com;
	spf=pass smtp.mailfrom=linux.intel.com;
	dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NqPlxJvq;
	arc=none smtp.remote-ip=192.198.163.9
X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A569460A2601
	for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 14:21:48 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A569460A2601
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
  t=1794320508; x=1825856508;
  h=date:from:to:cc:subject:message-id:references:
   mime-version:content-transfer-encoding:in-reply-to;
  bh=sEGSeEMxiUowRbiksA78d95S1GDUrZHi6yi/8NMwJGU=;
  b=NqPlxJvqX70dIz+vyhVvw1q1IGqqyh6MXbMW+IuuUUfZDZISXto5RVF5
   itLLsU0WfvRxJdHmz4tb/t3mLxg7ZVxcuvpDrvMdv3gvRHadlbqgs9vTR
   gzGp3IwjFjB05DzbF0opO0YIcyCOK6vwr3k8jQGY0akqbkYGEdzuBGzcp
   vPkYJlqE7wnX7mWZP0CCl8ci4MBlrpVnc6v9R1GcZJjayf15it0EO+esX
   dzbHpggE4+SunENjPFyrYIkZbzEhWyAh69KOHCeJq6A/iKuxhyM9iijmO
   GCusW6tJ6Lv8n6DODQ7TytB6xiBTb3+hLSE72AabGJXTr6cLrk/wJS+Ie
   A==;
X-CSE-ConnectionGUID: pF4ZbxMxSaGeyBIlBKpm3g==
X-CSE-MsgGUID: SkTvqrDAStKlTdHZDSU3Ew==
X-IronPort-AV: E=McAfee;i="6800,10657,11961"; a="2947970"
X-IronPort-AV: E=Sophos;i="6.27,205,1787036400"; 
   d="scan'208";a="2947970"
X-Received: from fmviesa012.fm.intel.com ([10.60.135.152])
  by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2026 06:21:48 -0800
X-CSE-ConnectionGUID: ehHpVLaxQBuOZTIriTvhNw==
X-CSE-MsgGUID: kv9ThO4nRgyZEGFiECaJ9g==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.27,205,1787036400"; 
   d="scan'208";a="9898211"
X-Received: from black.igk.intel.com ([10.91.253.5])
  by fmviesa012.fm.intel.com with ESMTP; 10 Nov 2026 06:21:46 -0800
X-Received: by black.igk.intel.com (Postfix, from userid 1001)
	id 5020599; Tue, 10 Nov 2026 15:21:45 +0100 (CET)
X-Cc: netdev@vger.kernel.org, YehezkelShB@gmail.com, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com
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
X-In-Reply-To: <179406690879.994134.8991092134542553771@kernel.org>