mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
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.
This commit is contained in:
parent
812e7515d6
commit
515a285d48
1 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,6 @@
|
|||
* - shutdown
|
||||
* - promiscuous
|
||||
* - report error
|
||||
* - Rx/Tx Csum
|
||||
* - Jumbo frames
|
||||
*
|
||||
* Philippe Anel, xigh@free.fr
|
||||
|
@ -312,6 +311,7 @@ struct Stats
|
|||
ulong rx;
|
||||
ulong tx;
|
||||
ulong txe;
|
||||
ulong txentry;
|
||||
ulong intr;
|
||||
};
|
||||
|
||||
|
@ -467,6 +467,7 @@ vgbeifstat(Ether* edev, void* a, long n, ulong offset)
|
|||
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 @@ vgbetransmit(Ether* edev)
|
|||
wiob(ctlr, TxCsrS, TxCsr_Wakeup);
|
||||
|
||||
if(count == 0)
|
||||
print("vgbe: transmit: no Tx entry available\n");
|
||||
ctlr->stats.txentry++;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue