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.
This commit is contained in:
1 parent
ec779c5ebd
commit
3e55603f3f
1 file changed
+1
-1
+1
-1
@@ -93,7 +93,7 @@ func (cache *MacCache) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (cache *MacCache) setExpiryTimer() {
|
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() {
|
func (cache *MacCache) expire() {
|
||||||
|
|||||||
Reference in new issue
Block a user