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 6A5EF1925BC for ; Mon, 21 Jul 2025 11:01:40 +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=1753095700; cv=none; b=lm+1p0z9jPabiw9RxiWPqWYSzua36FKbFpEAUViCPmv+uYi8Ncw8QhHxnBpcBdQ8PgiO6p8poW4k82w0lh7aEmO8kRhE3IAh2K68efkFco5bQRKebpRX/nMMXeaZpfhaMs7c1aWvZ18A/p5I8HHq/bi0DG8ThAoIzXrWnXfxWWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753095700; c=relaxed/simple; bh=nmx9aX/lx/MQvyuyZnNtLntpmP/4Jh8ZEnZ5BUAbjSo=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=nlt/ayeNv2dRMclaKrPeQz6F4rvEjC6ZiFcVM8+FylSN43ZxPJ6MFlnXkqbWs7aSChrVL9CAc8/PW7hmAj/w/UMMBErRgyPuJH0w7794mG/faQafAcW/i5xqwpW58TPiWqtbb95Uj/h/ysqRKmiQ5OrwWJn8WEIyRFSViPP2vo4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eo2ibydY; 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="eo2ibydY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C441C4CEED; Mon, 21 Jul 2025 11:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753095700; bh=nmx9aX/lx/MQvyuyZnNtLntpmP/4Jh8ZEnZ5BUAbjSo=; h=Subject:To:Cc:From:Date:From; b=eo2ibydYXSNXy+pujdflygeaURCyqGbRZbI1CyAhyBS/uvK4mLjOk/nJWFoTFFZqY e8zTq0aK/PPcIMOQDbS5iqtvJsMvva8TwHWPi/WGzejxyg+LM0XWMMguOlBa4+op2s OjkLBtaYBtAM6ZOmkQnnfauaubs6pftMaQxKL6FE= Subject: FAILED: patch "[PATCH] net: libwx: fix multicast packets received count" failed to apply to 6.15-stable tree To: jiawenwu@trustnetic.com,horms@kernel.org,kuba@kernel.org Cc: From: Date: Mon, 21 Jul 2025 13:01:36 +0200 Message-ID: <2025072136-steersman-voicing-574e@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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.15-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.15.y git checkout FETCH_HEAD git cherry-pick -x 2b30a3d1ec2538a1fd363fde746b9fe1d38abc77 # git commit -s git send-email --to '' --in-reply-to '2025072136-steersman-voicing-574e@gregkh' --subject-prefix 'PATCH 6.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 2b30a3d1ec2538a1fd363fde746b9fe1d38abc77 Mon Sep 17 00:00:00 2001 From: Jiawen Wu Date: Mon, 14 Jul 2025 09:56:56 +0800 Subject: [PATCH] net: libwx: fix multicast packets received count Multicast good packets received by PF rings that pass ethternet MAC address filtering are counted for rtnl_link_stats64.multicast. The counter is not cleared on read. Fix the duplicate counting on updating statistics. Fixes: 46b92e10d631 ("net: libwx: support hardware statistics") Cc: stable@vger.kernel.org Signed-off-by: Jiawen Wu Reviewed-by: Simon Horman Link: https://patch.msgid.link/DA229A4F58B70E51+20250714015656.91772-1-jiawenwu@trustnetic.com Signed-off-by: Jakub Kicinski diff --git a/drivers/net/ethernet/wangxun/libwx/wx_hw.c b/drivers/net/ethernet/wangxun/libwx/wx_hw.c index 4cce07a69891..f0823aa1ede6 100644 --- a/drivers/net/ethernet/wangxun/libwx/wx_hw.c +++ b/drivers/net/ethernet/wangxun/libwx/wx_hw.c @@ -2777,6 +2777,8 @@ void wx_update_stats(struct wx *wx) hwstats->fdirmiss += rd32(wx, WX_RDB_FDIR_MISS); } + /* qmprc is not cleared on read, manual reset it */ + hwstats->qmprc = 0; for (i = wx->num_vfs * wx->num_rx_queues_per_pool; i < wx->mac.max_rx_queues; i++) hwstats->qmprc += rd32(wx, WX_PX_MPRC(i));