Home
last modified time | relevance | path

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

/linux/net/sched/
H A Dact_gact.c26 static int gact_net_rand(struct tcf_gact *gact) in gact_net_rand() argument
29 if (get_random_u32_below(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 …]
/linux/include/net/tc_act/
H A 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/tools/testing/selftests/tc-testing/creating-testcases/
H A DAddingTestCases.txt44 under test is testing. Example: filter, actions, u32, gact, etc.
58 For example: if the command under test creates a gact action,
59 verifyCmd should be "$TC actions show action gact"
101 "$TC actions flush action gact",
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_selftests.c1089 struct tcf_gact *gact; in stmmac_test_rxp() local
1114 gact = kcalloc(nk, sizeof(*gact), GFP_KERNEL); in stmmac_test_rxp()
1115 if (!gact) { in stmmac_test_rxp()
1130 actions[i] = (struct tc_action *)&gact[i]; in stmmac_test_rxp()
1131 gact->tcf_action = TC_ACT_SHOT; in stmmac_test_rxp()
1154 kfree(gact); in stmmac_test_rxp()