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 = prandom_u32(); in sfb_init_perturbation()
228 sfb_init_perturbation(q->slot, q); in sfb_swap_slot()
229 q->slot ^= 1; in sfb_swap_slot()
288 u32 r, slot, salt, sfbhash; in sfb_enqueue() local
322 slot = q->slot; in sfb_enqueue()
327 q->bins[slot].perturbation); in sfb_enqueue()
330 sfb_skb_cb(skb)->hashes[slot] = sfbhash; in sfb_enqueue()
334 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue()
347 slot ^= 1; in sfb_enqueue()
348 sfb_skb_cb(skb)->hashes[slot] = 0; in sfb_enqueue()
362 q->bins[slot].perturbation); in sfb_enqueue()
365 sfb_skb_cb(skb)->hashes[slot] = sfbhash; in sfb_enqueue()
369 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue()
461 q->slot = 0; in sfb_reset()
538 q->slot = 0; in sfb_change()