Home
last modified time | relevance | path

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

/Linux-v6.1/net/sched/
Dact_gate.c20 static ktime_t gate_get_time(struct tcf_gate *gact) in gate_get_time() argument
24 switch (gact->tk_offset) { in gate_get_time()
28 return ktime_mono_to_any(mono, gact->tk_offset); in gate_get_time()
34 static void gate_get_start_time(struct tcf_gate *gact, ktime_t *start) in gate_get_start_time() argument
36 struct tcf_gate_params *param = &gact->param; in gate_get_start_time()
41 now = gate_get_time(gact); in gate_get_start_time()
54 static void gate_start_timer(struct tcf_gate *gact, ktime_t start) in gate_start_timer() argument
58 expires = hrtimer_get_expires(&gact->hitimer); in gate_start_timer()
64 hrtimer_start(&gact->hitimer, start, HRTIMER_MODE_ABS_SOFT); in gate_start_timer()
69 struct tcf_gate *gact = container_of(timer, struct tcf_gate, in gate_timer_func() local
[all …]
Dact_gact.c25 static int gact_net_rand(struct tcf_gact *gact) in gact_net_rand() argument
28 if (prandom_u32_max(gact->tcfg_pval)) in gact_net_rand()
29 return gact->tcf_action; in gact_net_rand()
30 return gact->tcfg_paction; in gact_net_rand()
33 static int gact_determ(struct tcf_gact *gact) in gact_determ() argument
35 u32 pack = atomic_inc_return(&gact->packets); in gact_determ()
38 if (pack % 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);
[all …]
/Linux-v6.1/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-v6.1/tools/testing/selftests/tc-testing/creating-testcases/
DAddingTestCases.txt42 under test is testing. Example: filter, actions, u32, gact, etc.
56 For example: if the command under test creates a gact action,
57 verifyCmd should be "$TC actions show action gact"
99 "$TC actions flush action gact",
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
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()