* [9front] [patch] ethervgbe: reduce console spam
@ 2022-12-02 16:20 Arne Meyer
2022-12-16 18:18 ` [9front] " Arne Meyer
0 siblings, 1 reply; 2+ messages in thread
From: Arne Meyer @ 2022-12-02 16:20 UTC (permalink / raw)
To: 9front
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
Moin,
this patch turns "no Tx entry available" messages into a ifstats counter
to reduce console spam.
While here, remove tx/rx offloading from the todo list to not give people
like me ideas.
Greetings,
Arne
[-- Attachment #2: ethervgbe.c.patch --]
[-- Type: application/octet-stream, Size: 929 bytes --]
diff e5d29a2bd91951a24fccecd958416856cecef444 uncommitted
--- a/sys/src/9/pc/ethervgbe.c
+++ b/sys/src/9/pc/ethervgbe.c
@@ -15,7 +15,6 @@
* - shutdown
* - promiscuous
* - report error
- * - Rx/Tx Csum
* - Jumbo frames
*
* Philippe Anel, xigh@free.fr
@@ -312,6 +311,7 @@
ulong rx;
ulong tx;
ulong txe;
+ ulong txentry;
ulong intr;
};
@@ -467,6 +467,7 @@
l = 0;
l += snprint(p+l, READSTR-l, "tx: %uld\n", ctlr->stats.tx);
l += snprint(p+l, READSTR-l, "tx [errs]: %uld\n", ctlr->stats.txe);
+ l += snprint(p+l, READSTR-l, "tx [no entry]: %uld\n", ctlr->stats.txentry);
l += snprint(p+l, READSTR-l, "rx: %uld\n", ctlr->stats.rx);
l += snprint(p+l, READSTR-l, "intr: %uld\n", ctlr->stats.intr);
snprint(p+l, READSTR-l, "\n");
@@ -803,7 +804,7 @@
wiob(ctlr, TxCsrS, TxCsr_Wakeup);
if(count == 0)
- print("vgbe: transmit: no Tx entry available\n");
+ ctlr->stats.txentry++;
}
static void
^ permalink raw reply [flat|nested] 2+ messages in thread
* [9front] Re: [patch] ethervgbe: reduce console spam
2022-12-02 16:20 [9front] [patch] ethervgbe: reduce console spam Arne Meyer
@ 2022-12-16 18:18 ` Arne Meyer
0 siblings, 0 replies; 2+ messages in thread
From: Arne Meyer @ 2022-12-16 18:18 UTC (permalink / raw)
To: 9front
ping
> Arne Meyer <meyer.arne83@netcologne.de> hat am 02.12.2022 16:20 GMT geschrieben:
>
>
> Moin,
>
> this patch turns "no Tx entry available" messages into a ifstats counter
> to reduce console spam.
> While here, remove tx/rx offloading from the todo list to not give people
> like me ideas.
>
> Greetings,
> Arne
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-16 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-02 16:20 [9front] [patch] ethervgbe: reduce console spam Arne Meyer
2022-12-16 18:18 ` [9front] " Arne Meyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).