Lines Matching refs:slot
72 u8 slot; /* current active bins (0 or 1) */ member
105 static u32 sfb_hash(const struct sk_buff *skb, u32 slot) in sfb_hash() argument
107 return sfb_skb_cb(skb)->hashes[slot]; in sfb_hash()
126 static void increment_one_qlen(u32 sfbhash, u32 slot, struct sfb_sched_data *q) in increment_one_qlen() argument
129 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in increment_one_qlen()
154 static void decrement_one_qlen(u32 sfbhash, u32 slot, in decrement_one_qlen() argument
158 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in decrement_one_qlen()
205 const struct sfb_bucket *b = &q->bins[q->slot].bins[0][0]; in sfb_compute_qlen()
221 static void sfb_init_perturbation(u32 slot, struct sfb_sched_data *q) in sfb_init_perturbation() argument
223 q->bins[slot].perturbation = net_random(); in sfb_init_perturbation()
228 sfb_init_perturbation(q->slot, q); in sfb_swap_slot()
229 q->slot ^= 1; in sfb_swap_slot()
287 u32 r, slot, salt, sfbhash; in sfb_enqueue() local
320 slot = q->slot; in sfb_enqueue()
325 q->bins[slot].perturbation); in sfb_enqueue()
328 sfb_skb_cb(skb)->hashes[slot] = sfbhash; in sfb_enqueue()
332 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue()
345 slot ^= 1; in sfb_enqueue()
346 sfb_skb_cb(skb)->hashes[slot] = 0; in sfb_enqueue()
360 q->bins[slot].perturbation); in sfb_enqueue()
363 sfb_skb_cb(skb)->hashes[slot] = sfbhash; in sfb_enqueue()
367 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue()
459 q->slot = 0; in sfb_reset()
536 q->slot = 0; in sfb_change()