Searched refs:tab_mask (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/net/sched/
H A Dsch_choke.c74 unsigned int tab_mask; /* size - 1 */ member in struct:choke_sched_data
82 return (q->tail - q->head) & q->tab_mask; choke_len()
101 q->head = (q->head + 1) & q->tab_mask; choke_zap_head_holes()
111 q->tail = (q->tail - 1) & q->tab_mask; choke_zap_tail_holes()
235 *pidx = (q->head + prandom_u32_max(choke_len(q))) & q->tab_mask; choke_peek_random()
327 q->tail = (q->tail + 1) & q->tab_mask; choke_enqueue()
391 q->head = (q->head + 1) & q->tab_mask; choke_reset()
399 memset(q->tab, 0, (q->tab_mask + 1) * sizeof(struct sk_buff *)); choke_reset()
445 if (mask != q->tab_mask) { choke_change()
464 q->head = (q->head + 1) & q->tab_mask; choke_change()
481 q->tab_mask = mask; choke_change()

Completed in 46 milliseconds