Home | History | Annotate | Download | only in route

Lines Matching refs:Cache

84 class TcCache(netlink.Cache):
85 """Cache of traffic control object"""
230 class QdiscCache(netlink.Cache):
231 """Cache of qdiscs"""
233 def __init__(self, cache=None):
234 if not cache:
235 cache = self._alloc_cache_name('route/qdisc')
238 self._nl_cache = cache
256 def _new_cache(cache):
257 return QdiscCache(cache=cache)
393 class TcClassCache(netlink.Cache):
394 """Cache of traffic classes"""
396 def __init__(self, ifindex, cache=None):
397 if not cache:
398 cache = self._alloc_cache_name('route/class')
401 self._nl_cache = cache
408 def _new_cache(self, cache):
409 return TcClassCache(self.arg1, cache=cache)
462 class ClassifierCache(netlink.Cache):
463 """Cache of traffic classifiers objects"""
465 def __init__(self, ifindex, parent, cache=None):
466 if not cache:
467 cache = self._alloc_cache_name('route/cls')
470 self._nl_cache = cache
478 def _new_cache(self, cache):
479 return ClassifierCache(self.arg1, self.arg2, cache=cache)
562 cache = _class_cache[ifindex]
564 cache = TcClassCache(ifindex)
565 _class_cache[ifindex] = cache
567 cache.refill()
569 for cl in cache:
585 cache = chain[parent]
587 cache = ClassifierCache(ifindex, parent)
588 chain[parent] = cache
590 cache.refill()
593 return [ cls for cls in cache ]
595 return [ cls for cls in cache if cls.handle == handle ]