Add missing rx stats to pcnet driver (#124)

* Add missing rx stats to pcnet driver

* Update changelog
This commit is contained in:
Vincent Ollivier 2020-12-21 12:03:39 +01:00 committed by GitHub
parent 40f226ee9c
commit 91c755b6b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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))

View File

@ -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);