Home
last modified time | relevance | path

Searched refs:gact (Results 1 – 1 of 1) sorted by relevance

/linux-4.1.27/net/sched/
Dact_gact.c29 static int gact_net_rand(struct tcf_gact *gact) in gact_net_rand() argument
31 if (!gact->tcfg_pval || prandom_u32() % gact->tcfg_pval) in gact_net_rand()
32 return gact->tcf_action; in gact_net_rand()
33 return gact->tcfg_paction; in gact_net_rand()
36 static int gact_determ(struct tcf_gact *gact) in gact_determ() argument
38 if (!gact->tcfg_pval || gact->tcf_bstats.packets % gact->tcfg_pval) in gact_determ()
39 return gact->tcf_action; in gact_determ()
40 return gact->tcfg_paction; in gact_determ()
43 typedef int (*g_rand)(struct tcf_gact *gact);
58 struct tcf_gact *gact; in tcf_gact_init() local
[all …]