forked from M-Labs/artiq
1
0
Fork 0

firmware: reduce ethmac maximum burst size by one.

Empirically, this much reduces packet loss. I'm not really sure why,
but it seems safe to do the change.
This commit is contained in:
whitequark 2017-08-30 14:35:25 +00:00
parent c0eb2ad0b7
commit 2231b16e0a
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ impl Device for EthernetDevice {
fn limits(&self) -> DeviceLimits {
let mut limits = DeviceLimits::default();
limits.max_transmission_unit = 1500;
limits.max_burst_size = Some(RX_BUFFERS.len());
limits.max_burst_size = Some(RX_BUFFERS.len() - 1);
limits
}