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=1796386438; b=giz2OGYrWLb2dYz7xij9Do318E5znP8+4tta+NU+PNTSo/sx7/gvXLm2yI2Se/aoPKjz 7qQuyn1ymvr+xSCdl1nAleUkznbyW40tejbEq6l9pPsJlzndSIwMDx0J5qX+HxTyiz0Lf BMsMeU4JVput5ZO3NRXB8LZz8lE4SbzbdO7YoHax/o1Mr/t2/qL0qP+xo9s+9CtFVwJn2 te7a/7xuqO+cxgY616PxD3A7SCZ/c7vneor2zqQId9e0P10+kKkmdOobUaGL1MMTJiAps tTG/HfPNnCQ62LjMfPyoHmS0PlbN4ZywAViL6ID0Mlr/s2nvq6YaoGenuw433c5O6hQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796386438; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=p54QzGiQegEXQooH137TAy1yw+uiGGf5EHwfBgF5hWA=; b=vV9Evo9eLH/7ppSNPQC9OKdM3s0ZCR3hkNtppyeKNSmAWLdk7TzNBsR3BG/OWc3/BJ5i oJX8pquYvHESYyYZF/S+JMM4aOMBi238ao0xcqVu83LOq3+hbcroc0YAbHgNiN6+niwFS 4wahcYGAxN5KpkqOASNZQXrarCWCbo0icnLcFiaFsSerYYE1BPLn4o8W7qfqQoJMm6mkO k8+sClsDG8HPly29JdpO3FEGJ3ZEHQBEaftQHjAFMyjtJDrmqZum5rd1Oj79BBovnOE0i JFyL1hygKjtri8DeJppeBJXdt6ybpNB6wv207W1VwoYoSzv5qJQ9NHiVQJuP1HhaxHw== 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=O3+QCRA6; 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 351D9606A322; Fri, 4 Dec 2026 12:13:58 +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=O3+QCRA6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76A3E1F00897; Fri, 4 Dec 2026 12:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796386437; bh=p54QzGiQegEXQooH137TAy1yw+uiGGf5EHwfBgF5hWA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=O3+QCRA6syDi3gyY0Co3WwzzNvxgMgZbvR870Zlxha8mxQb2JKox7PWzItyNXBrKE cXWfoQ9613dA1BsF32+TuuasyIt1E+0IGAxVVJI7jo0+rwx4tLMic19vjL2/TzKqcY O0ivdsvtlNxhT8Ln3/Uq15pzywhrmbwflrNHQKuo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Florian Fainelli , Nicolai Buchwitz , Willem de Bruijn , Sasha Levin Subject: [PATCH 6.6 0962/1167] net: systemport: accumulate the DIM packet and byte counters Date: Fri, 4 Dec 2026 19:06:29 +0900 Message-ID: <20261204100727.251559573@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore 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-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nicolai Buchwitz [ Upstream commit 3e7e20beef4ec04f7601e92e78608333f2ab3904 ] net_dim() computes rates from the difference between two samples and needs running totals, but bcm_sysport_desc_rx() passes the counts of the last poll. Adaptive coalescing then picks profiles from wrong rates. Accumulate the counters instead. Fixes: b6e0e875421e ("net: systemport: Implement adaptive interrupt coalescing") Reviewed-by: Florian Fainelli Signed-off-by: Nicolai Buchwitz Signed-off-by: Willem de Bruijn Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/bcmsysport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c index 28e9088a772cd..13f28f10a6443 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.c +++ b/drivers/net/ethernet/broadcom/bcmsysport.c @@ -878,8 +878,8 @@ static unsigned int bcm_sysport_desc_rx(struct bcm_sysport_priv *priv, priv->rx_read_ptr = 0; } - priv->dim.packets = processed; - priv->dim.bytes = processed_bytes; + priv->dim.packets += processed; + priv->dim.bytes += processed_bytes; return processed; } -- 2.53.0