Lines Matching refs:fold
2230 struct cls_fl_filter *fold,
2248 if (fold) {
2263 } else if (fold && fold->mask != fnew->mask) {
2284 struct cls_fl_filter *fold,
2298 return fold && err == -EEXIST ? 0 : err;
2313 struct cls_fl_filter *fold = *arg;
2343 if (fold && handle && fold->handle != handle) {
2366 if (!fold) {
2436 err = fl_check_assign_mask(head, fnew, fold, mask);
2440 err = fl_ht_insert_unique(fnew, fold, &in_ht);
2463 if (fold) {
2465 if (fold->deleted) {
2485 rhashtable_remove_fast(&fold->mask->ht,
2486 &fold->ht_node,
2487 fold->mask->filter_ht_params);
2489 list_replace_rcu(&fold->list, &fnew->list);
2490 fold->deleted = true;
2494 fl_mask_put(head, fold->mask);
2495 if (!tc_skip_hw(fold->flags))
2496 fl_hw_destroy_filter(tp, fold, rtnl_held, NULL);
2497 tcf_unbind_filter(tp, &fold->res);
2498 /* Caller holds reference to fold, so refcnt is always > 0
2501 refcount_dec(&fold->refcnt);
2502 __fl_put(fold);
2540 if (!fold) {
2551 if (fold)
2552 __fl_put(fold);