Lines Matching refs:fold
2153 struct cls_fl_filter *fold,
2171 if (fold) {
2186 } else if (fold && fold->mask != fnew->mask) {
2207 struct cls_fl_filter *fold,
2221 return fold && err == -EEXIST ? 0 : err;
2236 struct cls_fl_filter *fold = *arg;
2266 if (fold && handle && fold->handle != handle) {
2289 if (!fold) {
2359 err = fl_check_assign_mask(head, fnew, fold, mask);
2363 err = fl_ht_insert_unique(fnew, fold, &in_ht);
2386 if (fold) {
2388 if (fold->deleted) {
2408 rhashtable_remove_fast(&fold->mask->ht,
2409 &fold->ht_node,
2410 fold->mask->filter_ht_params);
2412 list_replace_rcu(&fold->list, &fnew->list);
2413 fold->deleted = true;
2417 fl_mask_put(head, fold->mask);
2418 if (!tc_skip_hw(fold->flags))
2419 fl_hw_destroy_filter(tp, fold, rtnl_held, NULL);
2420 tcf_unbind_filter(tp, &fold->res);
2421 /* Caller holds reference to fold, so refcnt is always > 0
2424 refcount_dec(&fold->refcnt);
2425 __fl_put(fold);
2463 if (!fold) {
2474 if (fold)
2475 __fl_put(fold);