From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D5D731C5D77; Wed, 4 Feb 2026 14:45:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216328; cv=none; b=Uk8pwqNeSrxFjQ5nOXiT+67G6DICKl48TNMFWg9KbnCHT+s0R6eGtK0Tdhp7sPP4naeUXNHrjhyG+imvfitcFl6WdblZ6T0fuDh9b13A/CEhY4ULOGzr5/ewmIxSrJYx3C8sBaJYZaRIZh6+FXN14YBg1Ycv7QDhwbW/1bjVvuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216328; c=relaxed/simple; bh=TGL1fpaAh/w+zt7IZxpimUMAq/Y2OKTanYquiyTwqwM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Tzn1PFDxkIS1XqGXZIZMsttSVvMWiWQf69dpyo1CWeKC2+6Ig1T+Sc4JTqHSlLvEefJqGtEUsJPcWfBJxhcIRu2uMXxcz4K7dPqDHiDArkXOCc1u7zqQ1BY33MrQzSj4MNECmLtPGWavi/QTBv1OMC1S7eCrzE4yhDcuo8lCD3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=umQhAprk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="umQhAprk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03D7EC4CEF7; Wed, 4 Feb 2026 14:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216328; bh=TGL1fpaAh/w+zt7IZxpimUMAq/Y2OKTanYquiyTwqwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=umQhAprksoCX74o2GfMMQKEs0Ysc3gkx3jDeX9f0Q+Tdee5LK1byzig/RDu5BshgM JB/RA2mBEyIdfQ93TiABYBxezo4wx/Wxh6SiqA8YtPjnZ4M7L+u5sc0/+wd2uekovB dazaTDWvxqf/92stlqzPlyFdlQJEWzmKIwuh9w1U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Raju Rangoju , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.10 054/161] amd-xgbe: avoid misleading per-packet error log Date: Wed, 4 Feb 2026 15:38:37 +0100 Message-ID: <20260204143853.705132474@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143851.755002596@linuxfoundation.org> References: <20260204143851.755002596@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Raju Rangoju [ Upstream commit c158f985cf6c2c36c99c4f67af2ff3f5ebe09f8f ] On the receive path, packet can be damaged because of buffer overflow in Rx FIFO. Avoid misleading per-packet error log when packet->errors is set, this can flood the log. Instead, rely on the standard rtnl_link_stats64 stats. Fixes: c5aa9e3b8156 ("amd-xgbe: Initial AMD 10GbE platform driver") Signed-off-by: Raju Rangoju Link: https://patch.msgid.link/20260114163037.2062606-1-Raju.Rangoju@amd.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c index 9cd6dac033630..3de7674a84675 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c @@ -2112,7 +2112,7 @@ static void xgbe_get_stats64(struct net_device *netdev, s->multicast = pstats->rxmulticastframes_g; s->rx_length_errors = pstats->rxlengtherror; s->rx_crc_errors = pstats->rxcrcerror; - s->rx_fifo_errors = pstats->rxfifooverflow; + s->rx_over_errors = pstats->rxfifooverflow; s->tx_packets = pstats->txframecount_gb; s->tx_bytes = pstats->txoctetcount_gb; @@ -2568,9 +2568,6 @@ static int xgbe_rx_poll(struct xgbe_channel *channel, int budget) goto read_again; if (error || packet->errors) { - if (packet->errors) - netif_err(pdata, rx_err, netdev, - "error in received packet\n"); dev_kfree_skb(skb); goto next_packet; } -- 2.51.0