Lines Matching refs:psample_group
45 struct psample_group *psample_group; in tcf_sample_init() local
84 psample_group = psample_group_get(net, psample_group_num); in tcf_sample_init()
85 if (!psample_group) { in tcf_sample_init()
96 RCU_INIT_POINTER(s->psample_group, psample_group); in tcf_sample_init()
112 struct psample_group *psample_group; in tcf_sample_cleanup() local
115 psample_group = rcu_dereference_protected(s->psample_group, 1); in tcf_sample_cleanup()
116 RCU_INIT_POINTER(s->psample_group, NULL); in tcf_sample_cleanup()
117 if (psample_group) in tcf_sample_cleanup()
118 psample_group_put(psample_group); in tcf_sample_cleanup()
140 struct psample_group *psample_group; in tcf_sample_act() local
150 psample_group = rcu_dereference_bh(s->psample_group); in tcf_sample_act()
153 if (psample_group && (prandom_u32() % s->rate == 0)) { in tcf_sample_act()
167 psample_sample_packet(psample_group, skb, size, iif, oif, in tcf_sample_act()