Searched refs:est (Results 1 - 23 of 23) sorted by relevance

/net/netfilter/
H A Dxt_RATEEST.c35 static void xt_rateest_hash_insert(struct xt_rateest *est) argument
39 h = xt_rateest_hash(est->name);
40 hlist_add_head(&est->list, &rateest_hash[h]);
45 struct xt_rateest *est; local
50 hlist_for_each_entry(est, &rateest_hash[h], list) {
51 if (strcmp(est->name, name) == 0) {
52 est->refcnt++;
54 return est;
62 void xt_rateest_put(struct xt_rateest *est) argument
65 if (--est
95 struct xt_rateest *est; local
98 struct gnet_estimator est; member in struct:__anon102
[all...]
H A Dnft_hash.c198 struct nft_set_estimate *est)
207 est->size = sizeof(struct rhashtable) +
217 est->size = esize + 2 * sizeof(struct nft_hash_elem *);
220 est->class = NFT_SET_CLASS_O_1;
197 nft_hash_estimate(const struct nft_set_desc *desc, u32 features, struct nft_set_estimate *est) argument
H A Dnft_rbtree.c245 struct nft_set_estimate *est)
254 est->size = sizeof(struct nft_rbtree) + desc->size * nsize;
256 est->size = nsize;
258 est->class = NFT_SET_CLASS_O_LOG_N;
244 nft_rbtree_estimate(const struct nft_set_desc *desc, u32 features, struct nft_set_estimate *est) argument
H A Dnf_tables_api.c2125 struct nft_set_estimate est, best; local
2150 if (!ops->estimate(desc, features, &est))
2155 if (est.class < best.class)
2157 if (est.class == best.class && est.size < best.size)
2161 if (est.size < best.size)
2163 if (est.size == best.size && est.class < best.class)
2176 best = est;
/net/netfilter/ipvs/
H A Dip_vs_est.c108 s = container_of(e, struct ip_vs_stats, est);
147 struct ip_vs_estimator *est = &stats->est; local
149 INIT_LIST_HEAD(&est->list);
152 list_add(&est->list, &ipvs->est_list);
159 struct ip_vs_estimator *est = &stats->est; local
162 list_del(&est->list);
168 struct ip_vs_estimator *est = &stats->est; local
[all...]
/net/core/
H A Dgen_estimator.c150 static void gen_add_node(struct gen_estimator *est) argument
160 if (est->bstats > e->bstats)
165 rb_link_node(&est->node, parent, p);
166 rb_insert_color(&est->node, &est_root);
212 struct gen_estimator *est; local
223 est = kzalloc(sizeof(*est), GFP_KERNEL);
224 if (est == NULL)
230 est->bstats = bstats;
231 est
[all...]
H A Dgen_stats.c191 struct gnet_stats_rate_est est; local
197 est.bps = min_t(u64, UINT_MAX, r->bps);
199 est.pps = r->pps;
202 d->tc_stats.bps = est.bps;
203 d->tc_stats.pps = est.pps;
207 res = gnet_stats_copy(d, TCA_STATS_RATE_EST, &est, sizeof(est));
208 if (res < 0 || est.bps == r->bps)
/net/sched/
H A Dact_pedit.c33 struct nlattr *est, struct tc_action *a,
60 ret = tcf_hash_create(parm->index, est, a, sizeof(*p), bind);
66 tcf_hash_cleanup(a, est);
32 tcf_pedit_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action *a, int ovr, int bind) argument
H A Dact_simple.c80 struct nlattr *est, struct tc_action *a,
106 ret = tcf_hash_create(parm->index, est, a, sizeof(*d), bind);
113 tcf_hash_cleanup(a, est);
79 tcf_simp_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action *a, int ovr, int bind) argument
H A Dact_api.c227 void tcf_hash_cleanup(struct tc_action *a, struct nlattr *est) argument
230 if (est)
237 int tcf_hash_create(u32 index, struct nlattr *est, struct tc_action *a, argument
254 if (est) {
257 &p->tcfc_lock, est);
486 struct nlattr *est, char *name, int ovr,
545 err = a_o->init(net, tb[TCA_ACT_OPTIONS], est, a, ovr, bind);
547 err = a_o->init(net, nla, est, a, ovr, bind);
569 struct nlattr *est, char *name, int ovr,
582 act = tcf_action_init_1(net, tb[i], est, nam
485 tcf_action_init_1(struct net *net, struct nlattr *nla, struct nlattr *est, char *name, int ovr, int bind) argument
568 tcf_action_init(struct net *net, struct nlattr *nla, struct nlattr *est, char *name, int ovr, int bind, struct list_head *actions) argument
[all...]
H A Dact_ipt.c86 static int tcf_ipt_init(struct net *net, struct nlattr *nla, struct nlattr *est, argument
117 ret = tcf_hash_create(index, est, a, sizeof(*ipt), bind);
169 tcf_hash_cleanup(a, est);
H A Dact_gact.c53 struct nlattr *est, struct tc_action *a,
88 ret = tcf_hash_create(parm->index, est, a, sizeof(*gact), bind);
52 tcf_gact_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action *a, int ovr, int bind) argument
H A Dact_mirred.c48 struct nlattr *est, struct tc_action *a, int ovr,
96 ret = tcf_hash_create(parm->index, est, a, sizeof(*m), bind);
47 tcf_mirred_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action *a, int ovr, int bind) argument
H A Dact_skbedit.c61 struct nlattr *est, struct tc_action *a,
102 ret = tcf_hash_create(parm->index, est, a, sizeof(*d), bind);
60 tcf_skbedit_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action *a, int ovr, int bind) argument
H A Dact_police.c115 struct nlattr *est, struct tc_action *a,
180 if (est) {
183 &police->tcf_lock, est);
114 tcf_act_police_locate(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action *a, int ovr, int bind) argument
H A Dact_nat.c38 static int tcf_nat_init(struct net *net, struct nlattr *nla, struct nlattr *est, argument
58 ret = tcf_hash_create(parm->index, est, a, sizeof(*p), bind);
H A Dcls_basic.c138 struct nlattr *est, bool ovr)
145 err = tcf_exts_validate(net, tp, tb, est, &e, ovr);
135 basic_set_parms(struct net *net, struct tcf_proto *tp, struct basic_filter *f, unsigned long base, struct nlattr **tb, struct nlattr *est, bool ovr) argument
H A Dcls_bpf.c168 struct nlattr *est, bool ovr)
182 ret = tcf_exts_validate(net, tp, tb, est, &exts, ovr);
165 cls_bpf_modify_existing(struct net *net, struct tcf_proto *tp, struct cls_bpf_prog *prog, unsigned long base, struct nlattr **tb, struct nlattr *est, bool ovr) argument
H A Dact_csum.c45 static int tcf_csum_init(struct net *n, struct nlattr *nla, struct nlattr *est, argument
65 ret = tcf_hash_create(parm->index, est, a, sizeof(*p), bind);
H A Dcls_route.c372 struct nlattr **tb, struct nlattr *est, int new,
383 err = tcf_exts_validate(net, tp, tb, est, &e, ovr);
369 route4_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, struct route4_filter *f, u32 handle, struct route4_head *head, struct nlattr **tb, struct nlattr *est, int new, bool ovr) argument
H A Dcls_tcindex.c226 struct nlattr *est, bool ovr)
236 err = tcf_exts_validate(net, tp, tb, est, &e, ovr);
223 tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, u32 handle, struct tcindex_data *p, struct tcindex_filter_result *r, struct nlattr **tb, struct nlattr *est, bool ovr) argument
H A Dcls_u32.c560 struct nlattr *est, bool ovr)
566 err = tcf_exts_validate(net, tp, tb, est, &e, ovr);
557 u32_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, struct tc_u_hnode *ht, struct tc_u_knode *n, struct nlattr **tb, struct nlattr *est, bool ovr) argument
H A Dsch_htb.c1378 } est = { local
1380 .nla_len = nla_attr_size(sizeof(est.opt)),
1409 tca[TCA_RATE] ? : &est.nla);

Completed in 152 milliseconds