Home
last modified time | relevance | path

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

/net/sched/
Dact_gact.c26 static int gact_net_rand(struct tcf_gact *gact) in gact_net_rand() argument
29 if (prandom_u32() % gact->tcfg_pval) in gact_net_rand()
30 return gact->tcf_action; in gact_net_rand()
31 return gact->tcfg_paction; in gact_net_rand()
34 static int gact_determ(struct tcf_gact *gact) in gact_determ() argument
36 u32 pack = atomic_inc_return(&gact->packets); in gact_determ()
39 if (pack % gact->tcfg_pval) in gact_determ()
40 return gact->tcf_action; in gact_determ()
41 return gact->tcfg_paction; in gact_determ()
44 typedef int (*g_rand)(struct tcf_gact *gact);
[all …]