Article View: linux.kernel.netdev
Article #978Re: [REGRESSION][BISECTED] r8169: TX stall with checksum offload on VLAN frames with inline tag (REORDER_HDR off) since 1517d199...
From: Eric Dumazet
Date: Thu, 08 Oct 2026 22:30
Date: Thu, 08 Oct 2026 22:30
83 lines
10261 bytes
10261 bytes
Le jeu. 8 oct. 2026 à 15:48, Jan Čermák <sairon@sairon.cz> a écrit :
>
> On Thu, 8 Oct 2026 at 14:48, Eric Dumazet <edumazet@kernel.org> wrote:
> > This is the current patch under review :
> > https://lore.kernel.org/netdev/20261008123812.554729-1-edumazet@kernel.org/T/#u
> >
> > Thanks.
>
> Oh, I missed that, as GitHub "protected my privacy" and I ended up in
> CC with its noreply address (which really leads to /dev/null). I've
> applied that patch to our tree and started the build, I'll ask in the
> issue tracker for testing once the build finishes and reply in the
> patch thread if I get any feedback.
>
> I've disabled the "privacy protection" on GitHub so I hope next time
> it shouldn't happen - but just in case you'll be updating the patch,
> please use my real address I use here.
Sure!
It seems a V3 will be needed, I will send it for review tomorrow after
the 24 hour delay
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index c949c6a829456c2f75d6c514b35a85ff64c493d8..684820c772289f1b73aa01255cc9ae5fadae95a9
100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -110,6 +110,8 @@ static netdev_tx_t vlan_dev_hard_start_xmit(struct
sk_buff *skb,
unsigned int len;
int ret;
+ len = skb->len;
+
/* Handle non-VLAN frames if they are sent to us, for example by DHCP.
*
* NOTE: THIS ASSUMES DIX ETHERNET, SPECIFICALLY NOT SUPPORTING
@@ -121,10 +123,34 @@ static netdev_tx_t
vlan_dev_hard_start_xmit(struct sk_buff *skb,
vlan_tci = vlan->vlan_id;
vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb->priority);
__vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci);
+ } else if (skb->len >= VLAN_ETH_HLEN + sizeof(__be16) &&
+ !skb_shared(skb) &&
+ vlan_hw_offload_capable(READ_ONCE(vlan->real_dev->features),
+ vlan->vlan_proto)) {
+ u16 vlan_tci;
+
+ /* The frame carries its outer tag in-band, either inserted
+ * by vlan_dev_hard_header() or provided by the sender.
+ * Let the real device insert it: some NICs can not offload
+ * checksum or TSO for frames carrying an in-band tag.
+ * Not all ndo_start_xmit() callers set the mac header.
+ * vlan_set_encap_proto() may read two bytes after the vlan
+ * header, so shorter frames are sent unchanged, as are
+ * shared skbs (e.g. from pktgen).
+ * On allocation failure, drop the frame rather than handing
+ * it to the real device with an in-band tag.
+ */
+ skb_reset_mac_header(skb);
+ if (unlikely(!pskb_may_pull(skb, VLAN_ETH_HLEN +
sizeof(__be16)) ||
+ __skb_vlan_pop(skb, &vlan_tci))) {
+ kfree_skb(skb);
+ this_cpu_inc(vlan->vlan_pcpu_stats->tx_dropped);
+ return NETDEV_TX_OK;
+ }
+ __vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci);
}
skb->dev = vlan->real_dev;
- len = skb->len;
if (unlikely(netpoll_tx_running(dev)))
return vlan_netpoll_send_skb(vlan, skb);
Technical Details
Message-ID:
<CAL4Wiirc10c4_NHznYYU9ODeEO0Fh8WJm72Kk8M6xZ5rXG489g@mail.gmail.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-343348-linux-kernel-netdev=dewy.ruReferences:
<CAPa5EdCj3v17tB-SF2JNecq5Q8s1Pranr-XzAFWNpNTBPgPG7w@mail.gmail.com> <a6193df2-98f3-409f-b73f-5b91835a0107@kernel.org> <CAL4WiirwF6bZwocErCthJ+TUu7wipRfSibRBoKWjjkA2nVSrqQ@mail.gmail.com> <CAL4WiiqSmW093PDngLrUNiNA5GVKeM3+tAO7KMDJeyjYZ7GRzg@mail.gmail.com> <4c98eff5-c8c7-43ee-b59a-adb833978816@kernel.org> <CAPa5EdDk+HuVP0H1+iqOcHDHZnfdika5WOQcgSaMtfRFWzqZ+Q@mail.gmail.com> <CAL4WiipSpufpdo-AWoNEJta-puLQ5hMyPn2xcjwg4vg67PNoyA@mail.gmail.com> <CAPa5EdC5+JiLCHdCt4m-sqM1pUs=fG8T7zsmVcheHCG8FFF8Fg@mail.gmail.com>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-343348-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [REGRESSION][BISECTED] r8169: TX stall with checksum offload on
VLAN frames with inline tag (REORDER_HDR off) since 1517d1996b52
Date: Fri, 9 Oct 2026 00:30:15 +0200
Organization: Usenet Network
Message-ID: <CAL4Wiirc10c4_NHznYYU9ODeEO0Fh8WJm72Kk8M6xZ5rXG489g@mail.gmail.com>
References: <CAPa5EdCj3v17tB-SF2JNecq5Q8s1Pranr-XzAFWNpNTBPgPG7w@mail.gmail.com>
<a6193df2-98f3-409f-b73f-5b91835a0107@kernel.org> <CAL4WiirwF6bZwocErCthJ+TUu7wipRfSibRBoKWjjkA2nVSrqQ@mail.gmail.com>
<CAL4WiiqSmW093PDngLrUNiNA5GVKeM3+tAO7KMDJeyjYZ7GRzg@mail.gmail.com>
<4c98eff5-c8c7-43ee-b59a-adb833978816@kernel.org> <CAPa5EdDk+HuVP0H1+iqOcHDHZnfdika5WOQcgSaMtfRFWzqZ+Q@mail.gmail.com>
<CAL4WiipSpufpdo-AWoNEJta-puLQ5hMyPn2xcjwg4vg67PNoyA@mail.gmail.com> <CAPa5EdC5+JiLCHdCt4m-sqM1pUs=fG8T7zsmVcheHCG8FFF8Fg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="987828"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:62xjbcjYqmBosdpdaZP2K4KDw30= sha256:t6wxfQUDQOUBz49fEIPncyfx9DvvZiXUALj0j8kFVJM=
sha1:2FSCu1pnITRrOI4jAJzRFNQYc4w= sha256:9ZZYvlDF3e3HHAPkW2S8Rue43T2jhA0Y5EpHEsmT/2I=
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 84C3510F566; Fri, 9 Oct 2026 01:30:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.441
X-Spam-Status: No, score=-1.441 tagged_above=-9999 required=6.31
tests=[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,
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 bkOwlrlyQ4X4;
Fri, 9 Oct 2026 01:30:38 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-343348-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id CD01210F561; Fri, 9 Oct 2026 01:30:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sto.lore.kernel.org (Postfix) with ESMTP id E28F5608399; Thu, 8 Oct 2026 22:30:33 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id F17A63E3C49;
Thu, 8 Oct 2026 22:30:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A1l/dIx8"
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 53AB243E06C
for <netdev@vger.kernel.org>; Thu, 8 Oct 2026 22:30:29 +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=1791498630; cv=none; b=H/P3EIyvaSuFfaqwd5gp+KLJpCN3ywXkZBtlkJb2+cfOF0W6pXWq9WD/O1UtGy2UEHQIrGCPdhnQ46iHWim7NKyWo3F2iB0o7vX/HTDiTF+fuwX6hLicjr7lnbEENh6Ts/GS2d/B3g+OiKHPdI3NKMCH9ZSSX8HertRfMngUUFE=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791498630; c=relaxed/simple;
bh=DmpUgBe6WbGh4qoSebBnxDOEpRHy5UIKV6WDZGaQ/u4=;
h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:
To:Cc:Content-Type; b=gout72pUrCORNJn1euwv+xFSOt5UfuxuzCL+LCPU/djgzcz4QbqnfYHpoljupS/8TwGiHBDvSej/wD2QaaKKz2T15pmy6TlqbdtKoJOVwGxxM0fTpwwrozp3pu2qVzbQ/bL3oVPUosyk+7pDrFUI55dRJueUO9LdRETLmT5nRSc=
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=A1l/dIx8; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF3351F0089D
for <netdev@vger.kernel.org>; Thu, 8 Oct 2026 22:30:28 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1791498629;
bh=YM3S3zdUrJPi9sjI7tUoLRuIpMCsX8cp9vpn2bmDzf4=;
h=References:In-Reply-To:From:Date:Subject:To:Cc;
b=A1l/dIx8zFcIXWRF5v3DRHmgk7OSPEs9CJI/VMsawBTxqwnb4Foopj0DEcUne9dDl
dW3Bi94IV3hNDeau9j/7Y92/sxBWzX3NE10jL9PsRPqZpHaJub4nZrS7HOe+S5nh/A
KXtT8NgiQoNwRkF3TMt/cP5bsoqp6ZW8Q8wrRO1cIG24Cj0mp7Cz03omHywEAY7Du/
XSWNKbul8Q9vnnhlX03B0hC0QzExETb7agMP5gkqfYTdZKegz1ttJ6FWUbV6JOJYvC
2xWlbOqcYYwBoThZJxOJlbMMGnzhSDxGl1wRe0uuJ2/WI46XkVREByIrrNgu3uEjZL
4yXK/HI/DzDig==
X-Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-6de2f213b7aso1539970eaf.0
for <netdev@vger.kernel.org>; Thu, 08 Oct 2026 15:30:28 -0700 (PDT)
X-Forwarded-Encrypted: i=1; AKwUvByR9qZl2w0+CANA6BokHk5KJTC7WIA7MtDdhzf8jMosxCWllGEhUAwaNCss+ouRqD0DHX4YGO0=@vger.kernel.org
X-Gm-Message-State: AFuF++lMcGEitJY/l3+PmySfwgaQclV43afni30DOV/qcoXEEv5pDCmZ
XHU81VbOupy8R2YoPGDeMZ5g+mEmjzrRLpWY+gX1xsH/xeFbeOClhSeONndpSYSmliij8H1QiLo
HBb7cziOhg0w0OmoF0JEui9KmtNqI9o0=
X-Received: by 2002:a4a:e915:0:b0:6dd:696d:b21f with SMTP id
006d021491bc7-6ef08e71c1emr165604eaf.2.1791498628179; Thu, 08 Oct 2026
15:30:28 -0700 (PDT)
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: <CAPa5EdC5+JiLCHdCt4m-sqM1pUs=fG8T7zsmVcheHCG8FFF8Fg@mail.gmail.com>
X-Gmail-Original-Message-ID: <CAL4Wiirc10c4_NHznYYU9ODeEO0Fh8WJm72Kk8M6xZ5rXG489g@mail.gmail.com>
X-Gm-Features: AclHuK83ylPpO1Omc3aUuPZqI6xRPqm0TMlzXP99sIQGhVnJEjvR3bpixOY5QaA
X-Cc: Heiner Kallweit <hkallweit1@gmail.com>, netdev@vger.kernel.org,
regressions@lists.linux.dev, stable@vger.kernel.org,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, nic_swsd@realtek.com,
Sasha Levin <sashal@kernel.org>