Article View: linux.kernel.netdev
Article #20002[PATCH net v2 0/5] net: bcmgenet, systemport: DIM and Rx discard fixes
From: Nicolai Buchwitz
Date: Fri, 20 Nov 2026 22:42
Date: Fri, 20 Nov 2026 22:42
44 lines
10390 bytes
10390 bytes
Sashiko has flagged a few genet bugs over time. I'll work through them
as time permits, fixing the ones that seem worth it.
DIM on genet and systemport wants running totals but gets per-poll
counts, so it picks bogus profiles from the wrong numbers.
The series also fixes DIM getting stuck after a down/up or suspend and
resets the Rx discard count with the ring.
Patches 1-3 have been tested on a Raspberry Pi CM4. I don't have any
systemport hardware, but the bugs there are the same.
---
Changes in v2:
- genet: flush the DIM work instead of cancelling it, which also covers
WoL suspend (Sashiko)
- genet: reset DIM before switching to running totals, so a stale sample
can't wrap after a reopen (Sashiko)
- genet, systemport: run net_dim() before napi_complete_done(), so no
DIM work can be queued after napi_disable()
- systemport: add the same DIM reset (Sashiko)
- systemport: the set_coalesce vs DIM work race is pre-existing and left
for a separate patch
- Link to v1: https://patch.msgid.link/20261118-nb-genet-dim-stats-net-v1-0-13b275f1e088@tipi-net.de
---
Nicolai Buchwitz (5):
net: bcmgenet: keep DIM from getting stuck after close or suspend
net: bcmgenet: accumulate the DIM packet and byte counters
net: bcmgenet: reset the Rx discard count with the ring
net: systemport: restart DIM from the default profile on start
net: systemport: accumulate the DIM packet and byte counters
drivers/net/ethernet/broadcom/bcmsysport.c | 20 ++++++++++++--------
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 19 +++++++++++++------
2 files changed, 25 insertions(+), 14 deletions(-)
---
base-commit: 2a324a58a084c5cfd7e5a2f55e0786bee170a4a5
change-id: 20261118-nb-genet-dim-stats-net-b6b6fd30398f
Best regards,
--
Nicolai Buchwitz <nb@tipi-net.de>
Technical Details
Message-ID:
<20261120-nb-genet-dim-stats-net-v2-0-1a7cece7dd1a@tipi-net.de>Path:
mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368191-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368191-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: [PATCH net v2 0/5] net: bcmgenet, systemport: DIM and Rx discard fixes Date: Fri, 20 Nov 2026 23:42:34 +0100 Organization: Usenet Network Message-ID: <20261120-nb-genet-dim-stats-net-v2-0-1a7cece7dd1a@tipi-net.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3283825"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:D50UM4qsuCVdTxdYIEgrDzpGxog= sha256:UtCrB1Y1kvX9kojlMj+dRFQciGgcdKbOoY7ubQ5skBw= sha1:YPsB3kLlFqUq5IeQ/ZZ0ojnZCvA= sha256:6Iz+GvisFRPAEp53bjeFMniNUngdkM9/SbdC5JdiEC4= 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 4B787115AB5; Sat, 21 Nov 2026 01:44:20 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=tipi-net.de 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 VO23fggGQ7kL; Sat, 21 Nov 2026 01:44:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-368191-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 6A979115A43; Sat, 21 Nov 2026 01:44:06 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 1E13282AAF; Fri, 20 Nov 2026 22:43:35 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795214602; b=qiYQybxjZtKUZeGfewqh+xAMnXN83qnOILjGVfabrEp5O5i/7JbTEfKe+VzLihUmZhMK 4W81kyhh4HwC1tBScNkWTCDhKIWg1kxQsrEqEGODBwCA1Ami0wgAJo7HPlALgi8frxMkw 6bpbtfu/LSTPkNqsJHl+k966J/Lp7DX1zDBWhHZSrYRpS8XCYDhbIsEGQOM2KmXGzuqIO WcINAPiECHySIhZdyEzXEqCamS4/XmA48y7/wv3Tkr/XITt3K8Q6wTU3yrQE2NYlPzvHM P78kLersz5k2v4yOxWE8JsTBwq6SFIsKMKXX26HeooeAMZSbFqbTUaQodKCoISEKP3g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795214602; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From: Subject:Date:Message-Id:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Last-TLS-Session-Version; bh=3DG5zJYI4bk0cn71OCAq0KXTmjsN6G/9bGdpWXwzxBE=; b=wzad7lGA7971c6c0Ls1grzYTJ4lO+7psJa2FeG35eBuM51PKWgg6dSl+NH3mwz7l4wrR rm+7wW9M4a6mZo30V2qEvPjVwYPrv9F/9vc32fc1L8RT8mU2uF6+7ypcxw1v7bf9GSYdJ 5r6YAIKltLkpm9eJ4eAdigjNuj45hMWl/XayHqv454f4mPg9lwnu9QOLxjgVWhjkI6zV5 ZwgFHoUwP8Ol6QHmQ2mkkR2SEN5WzhbfAkNebP2rhLkURoWu5ewkYIR3yEcFDkcH6k+LV KqwAeK5KvLQBabDel+G1q9feYZVJhkHcR98L/1XASgALEQsWcd0OzDTST9UAAfvRmcw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=ozgXlMcE; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F6A560A3806; Fri, 20 Nov 2026 22:43:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=ozgXlMcE X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795214601; b=fbDQf5Rx/wjUhmQsQIqz6JJQ2euvSokWflsLPlfuIGyoIJC8rLWmKp5X/LC60CpVvoBZ HByqtgsQ0SqjOYiPPsTYPPehhNxMdbW2KrVujl0JUvWTAsKWEt5cATSv7DzFF9ulYKmNA XJfk1ECiIdLWgkZi+pLIa6O+Tc43BWC4l8B8wvMOvUlb0YFTRfelOlv8eNngzxjepJE8B 4oXSP3AvlfNHkAqlUy43l38BRd/P/1F/4uHss+fO7igm1YYaOQd/bsDO4llW0u8lxQL4R SY/VV+kxH+qEWfubGK7O91ZNotR4yT6V/kprkzWhgPTAd+KoW3CdMQZOT6aAZSohCcg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795214601; h=DMARC-Filter:Received:DKIM-Signature:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Last-TLS-Session-Version; bh=3DG5zJYI4bk0cn71OCAq0KXTmjsN6G/9bGdpWXwzxBE=; b=5WI9AKmye50Dc0iHGqJs1we1QDvMxK5+xT614Li2BmEpHUYOlW9Coh3ckN3ZIB5ri5nl ZPoDp46dVEBoktdEEXkBjeOHKk9w+aUfCmuxWSNBc8GNo6gx01Ow1vbL3WACqqgvpPEEc 17GIpXbXW4D7lbGSrhJud1T+/qG3MagxDLPVh6/+gY+n5iE9ABSxorQ28f/IOCzXQvMWf UudMwFDlJ19Iuzwx7irog51cqusLHRuOS3SIy3jOLg5Ui2uSSoPpsNs8dat0JU4sOGv3/ fboNkCNhuLljnWt48yjZ17f77DGeq5h4We8BpqyFRuXdFKUgtyUjId91u2K9WZ1UWGw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=ozgXlMcE; arc=none smtp.remote-ip=194.13.80.246 X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B60A6606A6A4; Fri, 20 Nov 2026 22:43:09 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B60A6606A6A4 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8A3D4A023C; Fri, 20 Nov 2026 23:43:02 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1795214587; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=3DG5zJYI4bk0cn71OCAq0KXTmjsN6G/9bGdpWXwzxBE=; b=ozgXlMcE5PA6NUhIGtKRpQpp9Q0feeiCsP0ZDA6McYR+yYg5Mf0FUhDgDT/wmaMj/VKM6N GK04FNp/Kqls0IxudVx6Sx3lVkIMxp/leRF7ZADHYaYD163Up0+rlW/vwlXHuYRKPBcHXf ypz1EC55x2u6vEKg8hktxVOKuNs2P43K6+rKuagmRHsiIdVELixv1S2Wi2f3edoIiXoOdk pfSfU3tdN8PJ6CAhjpnTKDQbauK9d3i0Sq1uQ0msO7bv/8bwk46dw7SRiKLBucePWMrzzP kD7l6YRaiGXXWC0sfzwBkAhPxuqBVN8inoXmL7TqjcumKbYHbuFFADd2XQOZkQ== X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-B4-Tracking: v=1; b=H4sIAAAAAAAC/4WNQQ6CMBBFr0Jm7Zi2RKyuvIdhQekUxsRC2ko0h Lvb4gFcvpn3/18hUmCKcK1WCLRw5MlnUIcK+rHzAyHbzKCEaqSUGr3BgTwltPzEmLoUsZBpTON sLeqLdpDDcyDH7734DlmA9neML/OgPpXKoo0c0xQ++/wid/nf0iJRoKyNOp+cJKH1LfHM5XW0B O22bV/7orGV1QAAAA== X-Change-ID: 20261118-nb-genet-dim-stats-net-b6b6fd30398f X-Cc: Justin Chen <justin.chen@broadcom.com>, Petri Gynther <pgynther@google.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolai Buchwitz <nb@tipi-net.de> X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3