From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796221452; b=oNQB6mCJLzY9etGaa/cvfg7fbbqZYnZCXTICV8dFZaqFCa/ITfP3O0a4aZAGTZqlQ7os qB7/jCdBE27FktB5XHlV1iBe30xAqlt3AU/vbVZ/txZTl8moWDrNUqlS3yGdkwovKMxQZ zOH7wXcTgkNOZn4QGsxviA+hMgKHhrACP1ahG8tIxsAi6S+aVc2Ameyd168t8vPnIQ9XH zSQvAEEZiqDtz/Bcn8c4/oJZUdqexfiq9NpX49hlPk2OpqI7qpy/WVDRaDAFDMd6UmdrP W9TMF4r77H3Pv1Kh23BSRz+4VHLLAFrSdKH/1E4eGLPMKW6x95LNQBY2qEVjiZbUbPg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221452; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=5p36H7jsyRqYBzlLi/8hsYJmUtE7DVlK/BWDZwjxoWM=; b=iX/nm0QB8htfZfrfia6SrVybaxQYfrgkaMCBCmya2Gp8Olo9/8y04hv1W3gFxAwSdQrA 3/0/km9f+hkHKlxeblQ57eLskNqdrTS4iWUgcXzu2/+0Aa8BPoceLcH5/h/ZnhIdZcQMx q7LRtXczTh9lXxHDH+yFdcG+hpEfk98n5iEh1PLAriVDGtihDBMYppzqQJLhf5dXxafL6 O7TLRnW9bBvbmX7rMhuTpMzytqjvkRHyX/dBaP1CniamdBcpVtFChvrC9HOtizDp4uAth znS4a98IjZ0k5UyVKrfnG5j6CfxGVxD93ew28CLMO4DIwi9eGAGJvAoYRYDUmFuQ7fA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=OoxAqCP4; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFCBF606A31A for ; Wed, 2 Dec 2026 14:24:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=OoxAqCP4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23C241F00896; Wed, 2 Dec 2026 14:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796221452; bh=5p36H7jsyRqYBzlLi/8hsYJmUtE7DVlK/BWDZwjxoWM=; h=Subject:To:Cc:From:Date; b=OoxAqCP45OXTd9Onse3xC7fuxcNHtrMR2ClHojNI6zEi/++6hNf0IU4V2rK6z3kSH uZa6x7dR3eD16oPGiC3vkYzHfkSbsEzMqI/CWmgBAa94WRleeYmyij+QocRH1OrYGI JP++/EgUxEH31Tib2fauQT89QsJnMlI1ERIxLXo4= Subject: FAILED: patch "[PATCH] net: stmmac: dwmac1000: stop hardware from dropping" failed to apply to 6.6-stable tree To: opensource@grische.xyz,maxime.chevallier@bootlin.com,pabeni@redhat.com,stable@vger.kernel.org Cc: From: Date: Wed, 02 Dec 2026 14:49:52 +0100 Message-ID: <2026120252-succulent-unroll-63bd@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 2dd48c4615a67ebb1762c2b0d79801be1949fcfb # git commit -s git send-email --to '' --in-reply-to '2026120252-succulent-unroll-63bd@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 2dd48c4615a67ebb1762c2b0d79801be1949fcfb Mon Sep 17 00:00:00 2001 From: Christian Schmidbauer Date: Sat, 14 Nov 2026 14:36:39 +0100 Subject: [PATCH] net: stmmac: dwmac1000: stop hardware from dropping checksum-error packets When the checksum offload engine (CoE) is enabled, the dwmac1000 MAC silently drops any frame for which the engine detects a checksum error, before the driver sees it. This breaks VXLAN over IPv6 with zero UDP checksums, which RFC 6935 and RFC 6936 allow for tunnels. Set DMA_CONTROL_DT so that such frames are delivered instead of dropped, as commit fe4042797651 ("net: stmmac: dwmac4: stop hardware from dropping checksum-error packets") did for dwmac4. CoE remains enabled, so the driver still sees the error status and marks the skb CHECKSUM_NONE for the stack to verify. Set the bit only with enhanced descriptors. The normal descriptor parser does not report a checksum-only error to the stack, so cores that use it keep dropping such frames in hardware anyway. Tested on an Aruba AP-325 (ipq806x-gmac-dwmac) with Rx checksum offload on. Link: https://lore.kernel.org/all/20250625132117.1b3264e8@kernel.org/ Link: https://github.com/freifunk-gluon/gluon/issues/3783 Fixes: 47dd7a540b8a ("net: add support for STMicroelectronics Ethernet controllers.") Cc: # 6.6.x: ee0aace5f844: net: stmmac: Correctly handle Rx checksum offload errors Cc: # 6.6.x Signed-off-by: Christian Schmidbauer Reviewed-by: Maxime Chevallier Tested-by: Maxime Chevallier Link: https://patch.msgid.link/20261114133640.3285413-4-opensource@grische.xyz Signed-off-by: Paolo Abeni diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h b/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h index 1de1f929d61c..55d9c39287f1 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h @@ -162,7 +162,7 @@ enum rx_tx_priority_ratio { /* DMA CRS Control and Status Register Mapping */ /* DMA operation mode defines (start/stop tx/rx are placed in common header)*/ -/* Disable Drop TCP/IP csum error */ +#define DMA_CONTROL_DT 0x04000000 /* Disable Drop of TCP/IP csum errors */ #define DMA_CONTROL_RSF 0x02000000 /* Receive Store and Forward */ #define DMA_CONTROL_DFF 0x01000000 /* Disaable flushing */ /* Threshold for Activating the FC */ diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c index 3ac7a7949529..31d5f79ef560 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c @@ -15,6 +15,7 @@ #include #include "dwmac1000.h" #include "dwmac_dma.h" +#include "stmmac.h" static void dwmac1000_dma_axi(void __iomem *ioaddr, struct stmmac_axi *axi) { @@ -129,6 +130,13 @@ static void dwmac1000_dma_operation_mode_rx(struct stmmac_priv *priv, { u32 csr6 = readl(ioaddr + DMA_CHAN_CONTROL(channel)); + /* Deliver checksum-error frames only with enhanced + * descriptors, because the normal descriptor parser does not + * report a checksum-only error. + */ + if (priv->plat->enh_desc) + csr6 |= DMA_CONTROL_DT; + if (mode == SF_DMA_MODE) { pr_debug("GMAC: enable RX store and forward mode\n"); csr6 |= DMA_CONTROL_RSF | DMA_CONTROL_DFF;