Lines Matching refs:ftp
1142 struct sparx5_tc_flower_template *ftp; in sparx5_tc_flower_use_template() local
1144 list_for_each_entry(ftp, &port->tc_templates, list) { in sparx5_tc_flower_use_template()
1145 if (ftp->cid != fco->common.chain_index) in sparx5_tc_flower_use_template()
1148 vcap_set_rule_set_keyset(vrule, ftp->keyset); in sparx5_tc_flower_use_template()
1149 sparx5_tc_flower_simplify_rule(admin, vrule, ftp->l3_proto); in sparx5_tc_flower_use_template()
1440 struct sparx5_tc_flower_template *ftp; in sparx5_tc_flower_template_create() local
1460 ftp = kzalloc(sizeof(*ftp), GFP_KERNEL); in sparx5_tc_flower_template_create()
1461 if (!ftp) in sparx5_tc_flower_template_create()
1464 ftp->cid = fco->common.chain_index; in sparx5_tc_flower_template_create()
1465 ftp->orig = VCAP_KFS_NO_VALUE; in sparx5_tc_flower_template_create()
1466 ftp->keyset = VCAP_KFS_NO_VALUE; in sparx5_tc_flower_template_create()
1484 ftp->l3_proto = state.l3_proto; in sparx5_tc_flower_template_create()
1498 ftp->keyset = vcap_select_min_rule_keyset(vctrl, admin->vtype, &kslist); in sparx5_tc_flower_template_create()
1502 ftp->keyset, in sparx5_tc_flower_template_create()
1506 ftp->orig = kslist.keysets[0]; in sparx5_tc_flower_template_create()
1509 list_add_tail(&ftp->list, &port->tc_templates); in sparx5_tc_flower_template_create()
1516 kfree(ftp); in sparx5_tc_flower_template_create()
1525 struct sparx5_tc_flower_template *ftp, *tmp; in sparx5_tc_flower_template_destroy() local
1529 list_for_each_entry_safe(ftp, tmp, &port->tc_templates, list) { in sparx5_tc_flower_template_destroy()
1530 if (ftp->cid != fco->common.chain_index) in sparx5_tc_flower_template_destroy()
1535 ftp->l3_proto, ftp->orig, in sparx5_tc_flower_template_destroy()
1537 list_del(&ftp->list); in sparx5_tc_flower_template_destroy()
1538 kfree(ftp); in sparx5_tc_flower_template_destroy()