Lines Matching refs:duprule
1004 struct vcap_rule_internal *duprule; in vcap_dup_rule() local
1007 duprule = kzalloc(sizeof(*duprule), GFP_KERNEL); in vcap_dup_rule()
1008 if (!duprule) in vcap_dup_rule()
1010 *duprule = *ri; in vcap_dup_rule()
1012 INIT_LIST_HEAD(&duprule->list); in vcap_dup_rule()
1014 INIT_LIST_HEAD(&duprule->data.keyfields); in vcap_dup_rule()
1015 INIT_LIST_HEAD(&duprule->data.actionfields); in vcap_dup_rule()
1019 return duprule; in vcap_dup_rule()
1025 list_add_tail(&newckf->ctrl.list, &duprule->data.keyfields); in vcap_dup_rule()
1032 list_add_tail(&newcaf->ctrl.list, &duprule->data.actionfields); in vcap_dup_rule()
1035 return duprule; in vcap_dup_rule()
1038 list_for_each_entry_safe(ckf, newckf, &duprule->data.keyfields, ctrl.list) { in vcap_dup_rule()
1043 list_for_each_entry_safe(caf, newcaf, &duprule->data.actionfields, ctrl.list) { in vcap_dup_rule()
1048 kfree(duprule); in vcap_dup_rule()
2103 struct vcap_rule_internal *duprule, *iter, *elem = NULL; in vcap_insert_rule() local
2127 duprule = vcap_dup_rule(ri, ri->state == VCAP_RS_DISABLED); in vcap_insert_rule()
2128 if (IS_ERR(duprule)) in vcap_insert_rule()
2129 return PTR_ERR(duprule); in vcap_insert_rule()
2131 list_add_tail(&duprule->list, &admin->rules); in vcap_insert_rule()
2141 duprule = vcap_dup_rule(ri, ri->state == VCAP_RS_DISABLED); in vcap_insert_rule()
2142 if (IS_ERR(duprule)) in vcap_insert_rule()
2143 return PTR_ERR(duprule); in vcap_insert_rule()
2146 list_add_tail(&duprule->list, &elem->list); in vcap_insert_rule()