mirror of https://github.com/m-labs/artiq.git
firmware: Use larger ARP cache
This works around a problematic interaction between ARP cache expiry in smoltcp (with its 3 seconds timeout before a discovery request is sent) and our TCP keepalive settings, where the timeout is reached before the keepalive had a chance to be sent. GitHub: Closes #1150.
This commit is contained in:
parent
7565d816e4
commit
b482f5feae
|
@ -270,9 +270,8 @@ fn startup_ethernet() {
|
|||
smoltcp::phy::EthernetTracer::new(net_device, net_trace_fn)
|
||||
};
|
||||
|
||||
let mut neighbor_map = [None; 8];
|
||||
let neighbor_cache =
|
||||
smoltcp::iface::NeighborCache::new(&mut neighbor_map[..]);
|
||||
smoltcp::iface::NeighborCache::new(alloc::btree_map::BTreeMap::new());
|
||||
let mut interface =
|
||||
smoltcp::iface::EthernetInterfaceBuilder::new(net_device)
|
||||
.neighbor_cache(neighbor_cache)
|
||||
|
|
Loading…
Reference in New Issue