Article View: linux.kernel.netdev
Article #225Re: [PATCH net 2/2] r8169: flush pending transmit packets when an skb is dropped
From: Simon Horman
Date: Wed, 07 Oct 2026 15:34
Date: Wed, 07 Oct 2026 15:34
22 lines
6587 bytes
6587 bytes
On Sat, Oct 03, 2026 at 12:08:01AM +0000, iugfdin wrote:
> rtl8169_start_xmit() can defer a transmit poll when xmit_more is set.
> If a later skb fails preparation or DMA mapping, the shared error
> path drops it without issuing that deferred poll. If the failed skb
> ends the batch, previously committed packets can remain pending
> until another packet or recovery path kicks the device.
>
> Issue a transmit poll after cleaning up the failed skb so earlier
> packets can make progress. The failed skb still does not advance
> the producer index or contribute to BQL accounting.
>
> Fixes: ef14358546b1 ("r8169: make use of xmit_more")
> Assisted-by: LLM
> Signed-off-by: iugfdin <iugfdin@proton.me>
> ---
> Tested with W=1 driver-target builds on net under x86-64
> allmodconfig and allyesconfig, and source-executing ASan/UBSan
> checks with modeled kernel/DMA/MMIO boundaries. No physical
> Realtek NIC was available; this is not an on-device test claim.
Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261007153452.GW83879@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342395-linux-kernel-netdev=dewy.ruReferences:
<179098478409.1174319.4377246796187959500.r8169-cover@proton.me> <179098478410.1174319.17923728268629391314.r8169-2@proton.me>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-342395-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 2/2] r8169: flush pending transmit packets when an skb is dropped Date: Wed, 7 Oct 2026 16:34:52 +0100 Organization: Usenet Network Message-ID: <20261007153452.GW83879@horms.kernel.org> References: <179098478409.1174319.4377246796187959500.r8169-cover@proton.me> <179098478410.1174319.17923728268629391314.r8169-2@proton.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="677438"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:xcnHzSBfA67g1vmPYGwDViG9j9w= sha256:NjzVxzz0cmILuZBXBC2DMAcGMM9cJUcSInEfHz5lmgA= sha1:vxDkOfoSss/fE8Tl92W6E+WkmCs= sha256:dIgtddg/FI/xjCxkDB3cEz+Hmw4Pr6VeuNU5MUo2rzE= 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 7E48610F1A7; Wed, 7 Oct 2026 18:42:40 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.641 X-Spam-Status: No, score=-3.641 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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 (2048-bit key) header.d=kernel.org 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 aiR9oPoO3-yB; Wed, 7 Oct 2026 18:42:38 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342395-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id BC66610F108; Wed, 7 Oct 2026 18:42:34 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 1D08140CFE; Wed, 7 Oct 2026 15:37:16 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A72374BE456; Wed, 7 Oct 2026 15:35:04 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Rv3fTSrP" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC18848123D for <netdev@vger.kernel.org>; Wed, 7 Oct 2026 15:34:56 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791387304; cv=none; b=FcQw8r0ZyvZmbPC8MPllKs03EvPc1Wzri+qTWjTEpWpn3R9qZ8++xmEy4reoFIpN3jqw2cHh9epZ/FgrZdN8bIq+WH83+TlZiNvAxT6Lo9SD+faEAESbhsmh5Pir1tBvtalnKWTyRxsAiguAdM0jEg+kIlcK37TkTFGXVmeEkrM= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791387304; c=relaxed/simple; bh=L0x4JDqDFna9CJNPCa2uyjPavXu4Mie1YgaxStniy20=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YOM4t32cBzy8FdjucG8m+PE4Zwob2xRZ83DKRnUl6g7E6F81Um6EKG910AVDCI4Kk2bpszEVt4jo8mGLIZwq+sQ8GsMk4ezGPbR2ttwBBjBg3mafgK7LR439ttXCOGeG3rekJGZ0JBu9KwHuw6cPStfkVaWLE2oKuqyRrln5FGs= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Rv3fTSrP; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45BDC1F00893; Wed, 7 Oct 2026 15:34:54 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791387296; bh=wDt3kaQUn+FXnKI+ifgbxqx3rVVB655uDmMqAOOgMOI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Rv3fTSrPZFEYwkkxtEbBqAjSBGy5JOtcrSRyYGZEYff7pU4M8y90Bwa9YZSIQ+wd9 FcjNZXZwwDu//4dpncaFCHioJPFDNK6gUxRl7+GhzZGUH0VPzlKocTP0iOLnrGjMQW 4gfZgZEya2A/u2U+2QlQ2mj06gX6U3VR4/KG7oIfiOGJeKx5Oczb3mSspQLZkj7FAf WeDoS6alsW5NPfJJ7Roabf2PLH5EO3ClN5WCtiW0q3mIJrwQJJRiV+5JF+xCGiWCcq L30vHLM/EY/oFalZ+CZS9t/ydZUqKKo5XDJfh+mvyQxN+Jumj0Nj+8nu/zDZgKFnUz bkSLLKEUjpw6Q== X-Cc: netdev@vger.kernel.org, Heiner Kallweit <hkallweit1@gmail.com>, nic_swsd@realtek.com, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <179098478410.1174319.17923728268629391314.r8169-2@proton.me>