Home
last modified time | relevance | path

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

/Linux-v4.19/net/sched/
Dact_gact.c30 static int gact_net_rand(struct tcf_gact *gact) in gact_net_rand() argument
33 if (prandom_u32() % gact->tcfg_pval) in gact_net_rand()
34 return gact->tcf_action; in gact_net_rand()
35 return gact->tcfg_paction; in gact_net_rand()
38 static int gact_determ(struct tcf_gact *gact) in gact_determ() argument
40 u32 pack = atomic_inc_return(&gact->packets); in gact_determ()
43 if (pack % gact->tcfg_pval) in gact_determ()
44 return gact->tcf_action; in gact_determ()
45 return gact->tcfg_paction; in gact_determ()
48 typedef int (*g_rand)(struct tcf_gact *gact);
[all …]
/Linux-v4.19/include/net/tc_act/
Dtc_gact.h23 struct tcf_gact *gact; in __is_tcf_gact_act() local
28 gact = to_gact(a); in __is_tcf_gact_act()
29 if ((!is_ext && gact->tcf_action == act) || in __is_tcf_gact_act()
30 (is_ext && TC_ACT_EXT_CMP(gact->tcf_action, act))) in __is_tcf_gact_act()
/Linux-v4.19/tools/testing/selftests/tc-testing/creating-testcases/
DAddingTestCases.txt37 under test is testing. Example: filter, actions, u32, gact, etc.
51 For example: if the command under test creates a gact action,
52 verifyCmd should be "$TC actions show action gact"
94 "$TC actions flush action gact",