Lines Matching defs:cache
70 static int cls_request_update(struct nl_cache *cache, struct nl_sock *sk)
74 .tcm_ifindex = cache->c_iarg1,
75 .tcm_parent = cache->c_iarg2,
279 * Build a classifier cache including all classifiers attached to the
285 * @arg result Pointer to store resulting cache.
287 * Allocates a new cache, initializes it properly and updates it to
291 * cache after using it.
296 struct nl_cache * cache;
299 if (!(cache = nl_cache_alloc(&rtnl_cls_ops)))
302 cache->c_iarg1 = ifindex;
303 cache->c_iarg2 = parent;
305 if (sk && (err = nl_cache_refill(sk, cache)) < 0) {
306 nl_cache_free(cache);
310 *result = cache;