Article View: linux.kernel.netdev
Article #18735[PATCH net 0/4] net: bcmgenet, systemport: DIM and Rx discard fixes
From: Nicolai Buchwitz
Date: Wed, 18 Nov 2026 19:55
Date: Wed, 18 Nov 2026 19:55
30 lines
9642 bytes
9642 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 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 bug there is the same.
---
Nicolai Buchwitz (4):
net: bcmgenet: accumulate the DIM packet and byte counters
net: bcmgenet: restart DIM from the default profile on ring init
net: bcmgenet: reset the Rx discard count with the ring
net: systemport: accumulate the DIM packet and byte counters
drivers/net/ethernet/broadcom/bcmsysport.c | 4 ++--
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 9 +++++++--
2 files changed, 9 insertions(+), 4 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:
<20261118-nb-genet-dim-stats-net-v1-0-13b275f1e088@tipi-net.de>Path:
mbox-mo1.pugleaf.net!news-lax.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-366407-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.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-366407-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: [PATCH net 0/4] net: bcmgenet, systemport: DIM and Rx discard fixes Date: Wed, 18 Nov 2026 20:55:29 +0100 Organization: Usenet Network Message-ID: <20261118-nb-genet-dim-stats-net-v1-0-13b275f1e088@tipi-net.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2686330"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:eW3N4cMq1gvYnzQVu8boC0m1R20= sha256:m+qiFHVJwwLutpRJNzoPw8UhkzbujthgwTj6kwAi9qk= sha1:rYlCLmjr5vNpDsIZ9X1u9xIv+BU= sha256:mGfzqRgbERN1nWgnE88apun92fiZuQyLacS/6PeCPMY= 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 242CB1153C1; Wed, 18 Nov 2026 22:56:47 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 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] 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 VjesxCStXHTZ; Wed, 18 Nov 2026 22:56:44 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-366407-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 6522E1153BE; Wed, 18 Nov 2026 22:56:35 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 3607BE839E; Wed, 18 Nov 2026 19:56:22 +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=1795031770; b=L0iPM+TnjvgjCSaa0HR1YzO463YG0QzXE9sxKdyJROroTD2RNhIfd7bDr7lUmOBw1nvQ IKKj8QlOT/s5YVzifR0y7TKaHBpOuM637H4+0IFvljxL4/AJFcP/z4Zgy/eBhWEtXyL7z EXVe+gB966IV4AmBQqJTXyStLgBiubzluGeo1lkdYUoxenJvk9xRPnyAqudHJHotgY6aA TS310GkG7xTvFGeDubgk5svKsWI2KK4mV3EcfedpGpKOsXJETtbsSvsiQazL2dH9uOD5M wxwJ0Cq/LF26QAJMnXUOkM1VtNKjHPrTJE/CYvSW5ebFLVSiCgMXdEJJm984ZKYemtw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795031770; 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=87awnJq1jkb4seJuxJXK2LDjm3k40G+8Wfs0K4Y+pf0=; b=S52jC62CepeILhgZV8UF8UjjDnnQj7Z8ewGLI7c6hLj+r/Z7ZeyFUsKPXyN6lb8F3iy2 XwRQx7SMcEu8C+hIBjGwbul0DoM8cH/z2E4WwVGEl8YgUgHgh+B3yxXXOEW6YJ0TxFn72 9DRcgOIkRMyHuJTv8cpmKEXH80Yp3X+ZihqEHQCawY3SucBz2H9ePCSEMHSmVL2UECs+t U6MfjvgRtaU45o6RK7Vkz3oRqEtb65a1eirCYUGUhdcDFz8DXDWZ7bQlzZMqwWqjiUk4I MRQGh1kyglRa3jJcQNo6BbBraFZqEKcXmGsZJbBfI0+4rd4x5Qfk3VjC7rnR9YLBcQw== 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="Gy/rmkmF"; 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 C835960A2619; Wed, 18 Nov 2026 19:56:10 +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=Gy/rmkmF 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=1795031770; b=lqoENgloQYVS1d9WTA9Z5ndtgzJOl0iPEgx9d9DKs1q/dSJynIrO3TMy8O2YbrPKublx n5qq9WOpXX8ony2Dp5xaAqLOsNJU3oTvhcy4WEEZm7DoqRXO2sFPYxfete15dhhL+N9+7 DZ2aNfhGpusBGQqLAHsudGTRZ2zJVku1ZP6VLc+exr4+Ueg5lCwOt8a1tX4YMIecQYKYO xfZOFfCx7rXxvUtrcMB7y0pwLywiIbwFwJH71oqa043hqK+Wt+/InHX366QVIfESd1VTI kyucwHd9n8RzyW5PLUupIznbD8rFYPOwd284reSAlnm7YSzSkG3c0QKwa8QTiyjnVkw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795031770; 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=87awnJq1jkb4seJuxJXK2LDjm3k40G+8Wfs0K4Y+pf0=; b=K7KRDiNLXt4uoQkCKAP/rFbww8htA8aEbSsD6K8qdBzQ5RgG/AkE6eREgdjmGFCdfnQH F8pGr1jXUlK7NYhHwm5ffg7CcfADOQn2D2u87SDoM18+ZHXXi1epOm5hClVfXi+n4077P MibMkuuQu+SNSoxbhLmdIPSlom4oi7gTUdl8Sq5y9NILQpX6S1ng1rASLb42F1VZV4dgg CLmGrfvuey0eX1N3mtkYY8SesMQxegEwP7KVlJIjHpaaOqmURD+s9KMNYoZQWygtDlCxN A+FP4UEpyw4gmVsyqvOjDh4VgCZvJbpdO8y4wpAfpkAX38auP1s/nR0PB/VSJP8/HZQ== 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="Gy/rmkmF"; 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 BFD34606A33D; Wed, 18 Nov 2026 19:56:08 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BFD34606A33D 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 1BFD5A157C; Wed, 18 Nov 2026 20:56:02 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1795031766; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=87awnJq1jkb4seJuxJXK2LDjm3k40G+8Wfs0K4Y+pf0=; b=Gy/rmkmFBAx7NhiYguHsOm2ZLWQs0pZ75Wmt2dH3ZfKPvT+ZERs1J5RqHthwZR8Ef/S2Ts 6pVqK53yYQqVp/XO6/qml0swFU9nuL9K/zZ4iOzSkoKcV6StVSTCMe+tm63gEj3Ul7VccR +JnnNinlBXXVtp3I/bt4G6kd6+BI4IqL8VSLxoYVYRh6+f7pY/auUk8jOuQmKZPozDG/C7 /EoXBatbG5JSZ/v20HVY6liUA+vo8z+s4zrZMQeSs0ebzSE8Z8REOf5heTb83Tp5JNKItI Xt8ZYL0gNo1T/qBGO5ZqTEfhORzG5rHwu+RgnQTuLh0JSCKHJLIlrMhroK+skw== 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/yWM0QqDMBAEf0X2uQdGIWh/RfpgzEWv0FRyaSmI/ 96oj7PszAblJKy4VxsSf0XlHQuYW4VpGePMJL4wmrqxxpiOoqOZI2fy8iLNY1Y6yFlng2/rtu8 CirwmDvI7wwPKAY9r1I978pSPJPb9D6frGAF/AAAA 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, Florian Fainelli <f.fainelli@gmail.com> X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3