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

firmware: fix ethmac MTU value.

1500 is the maximum payload size, not maximum frame size.
This commit is contained in:
whitequark 2017-08-31 00:57:35 +00:00
parent 737c1044a4
commit 20f43d5792

View File

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