firmware: Use larger ARP cache

See b482f5feae
This commit is contained in:
Sebastien Bourdeauducq 2018-09-19 22:10:16 +08:00
parent c83e22c11c
commit fb1dfcf372
1 changed files with 1 additions and 2 deletions

View File

@ -116,9 +116,8 @@ fn startup() {
smoltcp::phy::EthernetTracer::new(net_device, net_trace_fn)
};
let mut neighbor_cache_storage = [None; 8];
let neighbor_cache =
smoltcp::iface::NeighborCache::new(&mut neighbor_cache_storage[..]);
smoltcp::iface::NeighborCache::new(alloc::btree_map::BTreeMap::new());
let mut interface =
smoltcp::iface::EthernetInterfaceBuilder::new(net_device)
.neighbor_cache(neighbor_cache)