2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

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

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
}