gact 1089 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct tcf_gact *gact = to_gact(&act[i]); gact 1092 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c gact->tcf_action = TC_ACT_SHOT; gact 23 include/net/tc_act/tc_gact.h struct tcf_gact *gact; gact 28 include/net/tc_act/tc_gact.h gact = to_gact(a); gact 29 include/net/tc_act/tc_gact.h if ((!is_ext && gact->tcf_action == act) || gact 30 include/net/tc_act/tc_gact.h (is_ext && TC_ACT_EXT_CMP(gact->tcf_action, act))) gact 26 net/sched/act_gact.c static int gact_net_rand(struct tcf_gact *gact) gact 29 net/sched/act_gact.c if (prandom_u32() % gact->tcfg_pval) gact 30 net/sched/act_gact.c return gact->tcf_action; gact 31 net/sched/act_gact.c return gact->tcfg_paction; gact 34 net/sched/act_gact.c static int gact_determ(struct tcf_gact *gact) gact 36 net/sched/act_gact.c u32 pack = atomic_inc_return(&gact->packets); gact 39 net/sched/act_gact.c if (pack % gact->tcfg_pval) gact 40 net/sched/act_gact.c return gact->tcf_action; gact 41 net/sched/act_gact.c return gact->tcfg_paction; gact 44 net/sched/act_gact.c typedef int (*g_rand)(struct tcf_gact *gact); gact 62 net/sched/act_gact.c struct tcf_gact *gact; gact 122 net/sched/act_gact.c gact = to_gact(*a); gact 124 net/sched/act_gact.c spin_lock_bh(&gact->tcf_lock); gact 128 net/sched/act_gact.c gact->tcfg_paction = p_parm->paction; gact 129 net/sched/act_gact.c gact->tcfg_pval = max_t(u16, 1, p_parm->pval); gact 134 net/sched/act_gact.c gact->tcfg_ptype = p_parm->ptype; gact 137 net/sched/act_gact.c spin_unlock_bh(&gact->tcf_lock); gact 153 net/sched/act_gact.c struct tcf_gact *gact = to_gact(a); gact 154 net/sched/act_gact.c int action = READ_ONCE(gact->tcf_action); gact 158 net/sched/act_gact.c u32 ptype = READ_ONCE(gact->tcfg_ptype); gact 161 net/sched/act_gact.c action = gact_rand[ptype](gact); gact 164 net/sched/act_gact.c bstats_cpu_update(this_cpu_ptr(gact->common.cpu_bstats), skb); gact 166 net/sched/act_gact.c qstats_drop_inc(this_cpu_ptr(gact->common.cpu_qstats)); gact 168 net/sched/act_gact.c tcf_lastuse_update(&gact->tcf_tm); gact 176 net/sched/act_gact.c struct tcf_gact *gact = to_gact(a); gact 177 net/sched/act_gact.c int action = READ_ONCE(gact->tcf_action); gact 178 net/sched/act_gact.c struct tcf_t *tm = &gact->tcf_tm; gact 180 net/sched/act_gact.c _bstats_cpu_update(this_cpu_ptr(gact->common.cpu_bstats), bytes, gact 183 net/sched/act_gact.c this_cpu_ptr(gact->common.cpu_qstats)->drops += packets; gact 186 net/sched/act_gact.c _bstats_cpu_update(this_cpu_ptr(gact->common.cpu_bstats_hw), gact 196 net/sched/act_gact.c struct tcf_gact *gact = to_gact(a); gact 198 net/sched/act_gact.c .index = gact->tcf_index, gact 199 net/sched/act_gact.c .refcnt = refcount_read(&gact->tcf_refcnt) - ref, gact 200 net/sched/act_gact.c .bindcnt = atomic_read(&gact->tcf_bindcnt) - bind, gact 204 net/sched/act_gact.c spin_lock_bh(&gact->tcf_lock); gact 205 net/sched/act_gact.c opt.action = gact->tcf_action; gact 209 net/sched/act_gact.c if (gact->tcfg_ptype) { gact 211 net/sched/act_gact.c .paction = gact->tcfg_paction, gact 212 net/sched/act_gact.c .pval = gact->tcfg_pval, gact 213 net/sched/act_gact.c .ptype = gact->tcfg_ptype, gact 220 net/sched/act_gact.c tcf_tm_dump(&t, &gact->tcf_tm); gact 223 net/sched/act_gact.c spin_unlock_bh(&gact->tcf_lock); gact 228 net/sched/act_gact.c spin_unlock_bh(&gact->tcf_lock);