From 3e55603f3f73da3b27988c31db68326f4d7c2640 Mon Sep 17 00:00:00 2001 From: David Wragg Date: Mon, 8 Jun 2015 02:54:00 +0100 Subject: [PATCH] Disable MAC cache expiry When ODP flows are taking care of routing packets, the router might not hear about a given MAC address for a long time, and so the MAC cache will expire it. For now, simply disable expiry of MAC cache entries. --- router/mac_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/mac_cache.go b/router/mac_cache.go index 8c07f5b9..55b39ce1 100644 --- a/router/mac_cache.go +++ b/router/mac_cache.go @@ -93,7 +93,7 @@ func (cache *MacCache) String() string { } func (cache *MacCache) setExpiryTimer() { - cache.expiryTimer = time.AfterFunc(cache.maxAge/10, func() { cache.expire() }) + //cache.expiryTimer = time.AfterFunc(cache.maxAge/10, func() { cache.expire() }) } func (cache *MacCache) expire() {