ref: 515a285d48c47508f6d359adb4fbb0ede3654c59
parent: 812e7515d6f9d102ebaeb89331ccb2a3b45d8c57
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Dec 18 20:44:02 EST 2022
ethervgbe: reduce console spam (thanks Arne Meyer) this patch turns "no Tx entry available" messages into an ifstats counter to reduce console spam. While here, remove tx/rx offloading from the todo list to not give people ideas.
--- 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