Home
last modified time | relevance | path

Searched refs:gact (Results 1 – 6 of 6) 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 …]
H A Dact_gate.c28 static ktime_t gate_get_time(struct tcf_gate *gact) in gate_get_time()
32 switch (gact->tk_offset) { in gate_get_time()
36 return ktime_mono_to_any(mono, gact->tk_offset);
44 static void gate_get_start_time(struct tcf_gate *gact, in gate_get_start_time()
52 now = gate_get_time(gact); in gate_get_start_time()
65 static void gate_start_timer(struct tcf_gate *gact, ktime_t start) in gate_start_timer()
69 expires = hrtimer_get_expires(&gact->hitimer); in gate_start_timer()
75 hrtimer_start(&gact->hitimer, start, HRTIMER_MODE_ABS_SOFT); in gate_timer_func()
80 struct tcf_gate *gact = container_of(timer, struct tcf_gate, in gate_timer_func()
86 spin_lock(&gact in gate_timer_func()
21 gate_get_time(struct tcf_gate * gact) gate_get_time() argument
37 gate_get_start_time(struct tcf_gate * gact,const struct tcf_gate_params * param,ktime_t * start) gate_get_start_time() argument
58 gate_start_timer(struct tcf_gate * gact,ktime_t start) gate_start_timer() argument
73 struct tcf_gate *gact = container_of(timer, struct tcf_gate, gate_timer_func() local
126 struct tcf_gate *gact = to_gate(a); tcf_gate_act() local
339 gate_setup_timer(struct tcf_gate * gact,s32 clockid,enum tk_offsets tko) gate_setup_timer() argument
366 struct tcf_gate *gact; tcf_gate_init() local
565 struct tcf_gate *gact = to_gate(a); tcf_gate_cleanup() local
609 struct tcf_gate *gact = to_gate(a); tcf_gate_dump() local
675 struct tcf_gate *gact = to_gate(a); tcf_gate_stats_update() local
684 struct tcf_gate *gact = to_gate(act); tcf_gate_get_fill_size() local
[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()
H A Dtc_gate.h57 struct tcf_gate *gact = to_gate(a); in tcf_gate_params_locked() local
59 return rcu_dereference_protected(gact->param, in tcf_gate_params_locked()
60 lockdep_is_held(&gact->tcf_lock)); in tcf_gate_params_locked()
/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.c1170 struct tcf_gact *gact; in stmmac_test_svlanfilt_perfect()
1195 gact = kzalloc_objs(*gact, nk); in stmmac_test_rxp()
1196 if (!gact) { in stmmac_test_rxp()
1211 actions[i] = (struct tc_action *)&gact[i]; in stmmac_test_rxp()
1212 gact->tcf_action = TC_ACT_SHOT; in stmmac_test_rxp()
1235 kfree(gact); in stmmac_test_rxp()
1188 struct tcf_gact *gact; stmmac_test_rxp() local