mirror of https://github.com/vinc/moros.git
Add missing rx stats to pcnet driver (#124)
* Add missing rx stats to pcnet driver * Update changelog
This commit is contained in:
parent
40f226ee9c
commit
91c755b6b0
|
@ -1,6 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
- Add missing RX stats to PCNET driver ([#124](https://github.com/vinc/moros/pull/124))
|
||||
- Fix PCNET BCNT computation ([#122](https://github.com/vinc/moros/pull/122))
|
||||
- Disable `rand_chacha` with `debug_assertions` ([#120](https://github.com/vinc/moros/pull/120))
|
||||
- Migrate from TravisCI to GitHub Actions ([#131](https://github.com/vinc/moros/pull/131))
|
||||
|
||||
|
|
|
@ -344,6 +344,7 @@ impl<'a> Device<'a> for PCNET {
|
|||
}
|
||||
|
||||
if packet.len() > 0 {
|
||||
self.stats.rx_add(packet.len() as u64);
|
||||
if self.debug_mode {
|
||||
//print!("Size: {} bytes\n", packet.len());
|
||||
user::hex::print_hex(&packet);
|
||||
|
|
Loading…
Reference in New Issue