/net/netfilter/ |
D | xt_RATEEST.c | 35 static void xt_rateest_hash_insert(struct xt_rateest *est) in xt_rateest_hash_insert() argument 39 h = xt_rateest_hash(est->name); in xt_rateest_hash_insert() 40 hlist_add_head(&est->list, &rateest_hash[h]); in xt_rateest_hash_insert() 45 struct xt_rateest *est; in xt_rateest_lookup() local 50 hlist_for_each_entry(est, &rateest_hash[h], list) { in xt_rateest_lookup() 51 if (strcmp(est->name, name) == 0) { in xt_rateest_lookup() 52 est->refcnt++; in xt_rateest_lookup() 54 return est; in xt_rateest_lookup() 62 void xt_rateest_put(struct xt_rateest *est) in xt_rateest_put() argument 65 if (--est->refcnt == 0) { in xt_rateest_put() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_est.c | 106 s = container_of(e, struct ip_vs_stats, est); in estimation_timer() 145 struct ip_vs_estimator *est = &stats->est; in ip_vs_start_estimator() local 147 INIT_LIST_HEAD(&est->list); in ip_vs_start_estimator() 150 list_add(&est->list, &ipvs->est_list); in ip_vs_start_estimator() 157 struct ip_vs_estimator *est = &stats->est; in ip_vs_stop_estimator() local 160 list_del(&est->list); in ip_vs_stop_estimator() 166 struct ip_vs_estimator *est = &stats->est; in ip_vs_zero_estimator() local 170 est->last_inbytes = u->inbytes; in ip_vs_zero_estimator() 171 est->last_outbytes = u->outbytes; in ip_vs_zero_estimator() 172 est->last_conns = u->conns; in ip_vs_zero_estimator() [all …]
|
/net/core/ |
D | gen_estimator.c | 149 static void gen_add_node(struct gen_estimator *est) in gen_add_node() argument 159 if (est->bstats > e->bstats) in gen_add_node() 164 rb_link_node(&est->node, parent, p); in gen_add_node() 165 rb_insert_color(&est->node, &est_root); in gen_add_node() 210 struct gen_estimator *est; in gen_new_estimator() local 220 est = kzalloc(sizeof(*est), GFP_KERNEL); in gen_new_estimator() 221 if (est == NULL) in gen_new_estimator() 225 est->bstats = bstats; in gen_new_estimator() 226 est->rate_est = rate_est; in gen_new_estimator() 227 est->stats_lock = stats_lock; in gen_new_estimator() [all …]
|
/net/sched/ |
D | act_simple.c | 99 struct nlattr *est, struct tc_action *a, in tcf_simp_init() argument 127 pc = tcf_hash_create(parm->index, est, a, sizeof(*d), bind, in tcf_simp_init() 135 if (est) in tcf_simp_init()
|
D | act_pedit.c | 42 struct nlattr *est, struct tc_action *a, in tcf_pedit_init() argument 71 pc = tcf_hash_create(parm->index, est, a, sizeof(*p), bind, in tcf_pedit_init() 78 if (est) in tcf_pedit_init()
|
D | act_api.c | 225 struct tcf_common *tcf_hash_create(u32 index, struct nlattr *est, in tcf_hash_create() argument 241 if (est) { in tcf_hash_create() 243 &p->tcfc_lock, est); in tcf_hash_create() 489 struct nlattr *est, char *name, int ovr, in tcf_action_init_1() argument 546 err = a_o->init(net, tb[TCA_ACT_OPTIONS], est, a, ovr, bind); in tcf_action_init_1() 548 err = a_o->init(net, nla, est, a, ovr, bind); in tcf_action_init_1() 571 struct nlattr *est, char *name, int ovr, in tcf_action_init() argument 584 act = tcf_action_init_1(net, tb[i], est, name, ovr, bind); in tcf_action_init()
|
D | act_ipt.c | 105 static int tcf_ipt_init(struct net *net, struct nlattr *nla, struct nlattr *est, in tcf_ipt_init() argument 138 pc = tcf_hash_create(index, est, a, sizeof(*ipt), bind, in tcf_ipt_init() 189 if (est) in tcf_ipt_init()
|
D | act_gact.c | 62 struct nlattr *est, struct tc_action *a, in tcf_gact_init() argument 99 pc = tcf_hash_create(parm->index, est, a, sizeof(*gact), in tcf_gact_init()
|
D | act_skbedit.c | 71 struct nlattr *est, struct tc_action *a, in tcf_skbedit_init() argument 114 pc = tcf_hash_create(parm->index, est, a, sizeof(*d), bind, in tcf_skbedit_init()
|
D | act_police.c | 145 struct nlattr *est, struct tc_action *a, in tcf_act_police_locate() argument 211 if (est) { in tcf_act_police_locate() 214 &police->tcf_lock, est); in tcf_act_police_locate()
|
D | act_mirred.c | 66 struct nlattr *est, struct tc_action *a, int ovr, in tcf_mirred_init() argument 116 pc = tcf_hash_create(parm->index, est, a, sizeof(*m), bind, in tcf_mirred_init()
|
D | cls_basic.c | 138 struct nlattr *est) in basic_set_parms() argument 144 err = tcf_exts_validate(net, tp, tb, est, &e, &basic_ext_map); in basic_set_parms()
|
D | act_nat.c | 47 static int tcf_nat_init(struct net *net, struct nlattr *nla, struct nlattr *est, in tcf_nat_init() argument 69 pc = tcf_hash_create(parm->index, est, a, sizeof(*p), bind, in tcf_nat_init()
|
D | cls_tcindex.c | 203 struct nlattr *est) in tcindex_set_parms() argument 212 err = tcf_exts_validate(net, tp, tb, est, &e, &tcindex_ext_map); in tcindex_set_parms()
|
D | act_csum.c | 54 static int tcf_csum_init(struct net *n, struct nlattr *nla, struct nlattr *est, in tcf_csum_init() argument 76 pc = tcf_hash_create(parm->index, est, a, sizeof(*p), bind, in tcf_csum_init()
|
D | cls_route.c | 341 struct nlattr **tb, struct nlattr *est, int new) in route4_set_parms() argument 350 err = tcf_exts_validate(net, tp, tb, est, &e, &route_ext_map); in route4_set_parms()
|
D | cls_u32.c | 494 struct nlattr *est) in u32_set_parms() argument 499 err = tcf_exts_validate(net, tp, tb, est, &e, &u32_ext_map); in u32_set_parms()
|
D | sch_htb.c | 1342 } est = { in htb_change_class() local 1344 .nla_len = nla_attr_size(sizeof(est.opt)), in htb_change_class() 1371 tca[TCA_RATE] ? : &est.nla); in htb_change_class()
|