Lines Matching refs:sfbhash
123 static void increment_one_qlen(u32 sfbhash, u32 slot, struct sfb_sched_data *q) in increment_one_qlen() argument
129 u32 hash = sfbhash & SFB_BUCKET_MASK; in increment_one_qlen()
131 sfbhash >>= SFB_BUCKET_SHIFT; in increment_one_qlen()
140 u32 sfbhash; in increment_qlen() local
142 sfbhash = cb->hashes[0]; in increment_qlen()
143 if (sfbhash) in increment_qlen()
144 increment_one_qlen(sfbhash, 0, q); in increment_qlen()
146 sfbhash = cb->hashes[1]; in increment_qlen()
147 if (sfbhash) in increment_qlen()
148 increment_one_qlen(sfbhash, 1, q); in increment_qlen()
151 static void decrement_one_qlen(u32 sfbhash, u32 slot, in decrement_one_qlen() argument
158 u32 hash = sfbhash & SFB_BUCKET_MASK; in decrement_one_qlen()
160 sfbhash >>= SFB_BUCKET_SHIFT; in decrement_one_qlen()
169 u32 sfbhash; in decrement_qlen() local
171 sfbhash = sfb_hash(skb, 0); in decrement_qlen()
172 if (sfbhash) in decrement_qlen()
173 decrement_one_qlen(sfbhash, 0, q); in decrement_qlen()
175 sfbhash = sfb_hash(skb, 1); in decrement_qlen()
176 if (sfbhash) in decrement_qlen()
177 decrement_one_qlen(sfbhash, 1, q); in decrement_qlen()
291 u32 r, sfbhash; in sfb_enqueue() local
320 sfbhash = siphash_1u32(salt, &q->bins[slot].perturbation); in sfb_enqueue()
322 sfbhash = skb_get_hash_perturb(skb, &q->bins[slot].perturbation); in sfb_enqueue()
326 if (!sfbhash) in sfb_enqueue()
327 sfbhash = 1; in sfb_enqueue()
328 sfb_skb_cb(skb)->hashes[slot] = sfbhash; in sfb_enqueue()
331 u32 hash = sfbhash & SFB_BUCKET_MASK; in sfb_enqueue()
334 sfbhash >>= SFB_BUCKET_SHIFT; in sfb_enqueue()
357 sfbhash = skb_get_hash_perturb(skb, in sfb_enqueue()
359 if (!sfbhash) in sfb_enqueue()
360 sfbhash = 1; in sfb_enqueue()
361 sfb_skb_cb(skb)->hashes[slot] = sfbhash; in sfb_enqueue()
364 u32 hash = sfbhash & SFB_BUCKET_MASK; in sfb_enqueue()
367 sfbhash >>= SFB_BUCKET_SHIFT; in sfb_enqueue()