Lines Matching refs:fold
2281 struct cls_fl_filter *fold, in fl_check_assign_mask() argument
2299 if (fold) { in fl_check_assign_mask()
2314 } else if (fold && fold->mask != fnew->mask) { in fl_check_assign_mask()
2335 struct cls_fl_filter *fold, in fl_ht_insert_unique() argument
2349 return fold && err == -EEXIST ? 0 : err; in fl_ht_insert_unique()
2365 struct cls_fl_filter *fold = *arg; in fl_change() local
2395 if (fold && handle && fold->handle != handle) { in fl_change()
2418 if (!fold) { in fl_change()
2488 err = fl_check_assign_mask(head, fnew, fold, mask); in fl_change()
2492 err = fl_ht_insert_unique(fnew, fold, &in_ht); in fl_change()
2515 if (fold) { in fl_change()
2517 if (fold->deleted) { in fl_change()
2537 rhashtable_remove_fast(&fold->mask->ht, in fl_change()
2538 &fold->ht_node, in fl_change()
2539 fold->mask->filter_ht_params); in fl_change()
2541 list_replace_rcu(&fold->list, &fnew->list); in fl_change()
2542 fold->deleted = true; in fl_change()
2546 fl_mask_put(head, fold->mask); in fl_change()
2547 if (!tc_skip_hw(fold->flags)) in fl_change()
2548 fl_hw_destroy_filter(tp, fold, rtnl_held, NULL); in fl_change()
2549 tcf_unbind_filter(tp, &fold->res); in fl_change()
2553 refcount_dec(&fold->refcnt); in fl_change()
2554 __fl_put(fold); in fl_change()
2592 if (!fold) { in fl_change()
2603 if (fold) in fl_change()
2604 __fl_put(fold); in fl_change()