forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

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