Lines Matching refs:params
317 static int tcf_ct_flow_table_get(struct net *net, struct tcf_ct_params *params)
323 ct_ft = rhashtable_lookup_fast(&zones_ht, ¶ms->zone, zones_params);
332 ct_ft->zone = params->zone;
347 params->ct_ft = ct_ft;
348 params->nf_ft = &ct_ft->nf_ft;
864 static void tcf_ct_params_free(struct tcf_ct_params *params)
866 if (params->helper) {
868 if (params->ct_action & TCA_CT_ACT_NAT)
869 nf_nat_helper_put(params->helper);
871 nf_conntrack_helper_put(params->helper);
873 if (params->ct_ft)
874 tcf_ct_flow_table_put(params->ct_ft);
875 if (params->tmpl)
876 nf_ct_put(params->tmpl);
877 kfree(params);
882 struct tcf_ct_params *params;
884 params = container_of(head, struct tcf_ct_params, rcu);
885 tcf_ct_params_free(params);
966 p = rcu_dereference_bh(c->params);
1301 struct tcf_ct_params *params = NULL;
1351 params = kzalloc(sizeof(*params), GFP_KERNEL);
1352 if (unlikely(!params)) {
1357 err = tcf_ct_fill_params(net, params, parm, tb, extack);
1361 err = tcf_ct_flow_table_get(net, params);
1367 params = rcu_replace_pointer(c->params, params,
1373 if (params)
1374 call_rcu(¶ms->rcu, tcf_ct_params_free_rcu);
1381 if (params)
1382 tcf_ct_params_free(params);
1389 struct tcf_ct_params *params;
1392 params = rcu_dereference_protected(c->params, 1);
1393 if (params)
1394 call_rcu(¶ms->rcu, tcf_ct_params_free_rcu);
1488 p = rcu_dereference_protected(c->params,