From 20f43d5792836369c8e7eb16d87ef10ef8dc9aec Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 31 Aug 2017 00:57:35 +0000 Subject: [PATCH] firmware: fix ethmac MTU value. 1500 is the maximum payload size, not maximum frame size. --- artiq/firmware/runtime/ethmac.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/runtime/ethmac.rs b/artiq/firmware/runtime/ethmac.rs index 23047bab0..68db8cbde 100644 --- a/artiq/firmware/runtime/ethmac.rs +++ b/artiq/firmware/runtime/ethmac.rs @@ -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 }