Lines Matching refs:slot
71 u8 slot; /* current active bins (0 or 1) */ member
104 static u32 sfb_hash(const struct sk_buff *skb, u32 slot) in sfb_hash() argument
106 return sfb_skb_cb(skb)->hashes[slot]; in sfb_hash()
125 static void increment_one_qlen(u32 sfbhash, u32 slot, struct sfb_sched_data *q) in increment_one_qlen() argument
128 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in increment_one_qlen()
153 static void decrement_one_qlen(u32 sfbhash, u32 slot, in decrement_one_qlen() argument
157 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in decrement_one_qlen()
204 const struct sfb_bucket *b = &q->bins[q->slot].bins[0][0]; in sfb_compute_qlen()
220 static void sfb_init_perturbation(u32 slot, struct sfb_sched_data *q) in sfb_init_perturbation() argument
222 q->bins[slot].perturbation = prandom_u32(); in sfb_init_perturbation()
227 sfb_init_perturbation(q->slot, q); in sfb_swap_slot()
228 q->slot ^= 1; in sfb_swap_slot()
288 u32 slot = q->slot; in sfb_enqueue() local
316 sfbhash = jhash_1word(salt, q->bins[slot].perturbation); in sfb_enqueue()
318 sfbhash = skb_get_hash_perturb(skb, q->bins[slot].perturbation); in sfb_enqueue()
324 sfb_skb_cb(skb)->hashes[slot] = sfbhash; in sfb_enqueue()
328 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue()
341 slot ^= 1; in sfb_enqueue()
342 sfb_skb_cb(skb)->hashes[slot] = 0; in sfb_enqueue()
354 q->bins[slot].perturbation); in sfb_enqueue()
357 sfb_skb_cb(skb)->hashes[slot] = sfbhash; in sfb_enqueue()
361 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue()
453 q->slot = 0; in sfb_reset()
531 q->slot = 0; in sfb_change()