Home
last modified time | relevance | path

Searched refs:reciprocal_scale (Results 1 – 22 of 22) sorted by relevance

/OK3568_Linux_fs/kernel/include/net/netfilter/
H A Dnf_queue.h111 queue += reciprocal_scale(hash_v4(ip_hdr(skb), initval), in nfqueue_hash()
115 queue += reciprocal_scale(hash_v6(ipv6_hdr(skb), initval), in nfqueue_hash()
119 queue += reciprocal_scale(hash_bridge(skb, initval), in nfqueue_hash()
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnft_hash.c34 h = reciprocal_scale(jhash(data, priv->len, priv->seed), in nft_jhash_eval()
54 h = reciprocal_scale(__skb_get_hash_symmetric(skb), priv->modulus); in nft_symhash_eval()
H A Dnft_set_hash.c441 hash = reciprocal_scale(hash, priv->buckets); in nft_hash_lookup()
461 hash = reciprocal_scale(hash, priv->buckets); in nft_hash_get()
481 hash = reciprocal_scale(hash, priv->buckets); in nft_hash_lookup_fast()
505 hash = reciprocal_scale(hash, priv->buckets); in nft_jhash()
H A Dxt_cluster.c56 return reciprocal_scale(hash, info->total_nodes); in xt_cluster_hash()
H A Dnft_numgen.c108 return reciprocal_scale(get_random_u32(), priv->modulus) + priv->offset; in nft_ng_random_gen()
H A Dxt_HMARK.c128 return reciprocal_scale(hash, info->hmodulus) + info->hoffset; in hmark_hash()
H A Dnf_conntrack_core.c206 return reciprocal_scale(hash, nf_conntrack_htable_size); in scale_hash()
213 return reciprocal_scale(hash_conntrack_raw(tuple, net), size); in __hash_conntrack()
745 bucket = reciprocal_scale(hash, hsize); in ____nf_conntrack_find()
1317 bucket = reciprocal_scale(hash, hsize); in early_drop()
H A Dnf_nat_core.c200 return reciprocal_scale(hash, nf_nat_htable_size); in hash_by_src()
386 htonl(minip + reciprocal_scale(j, dist)); in find_best_ips_proto()
H A Dnf_conntrack_expect.c91 return reciprocal_scale(hash, nf_ct_expect_hsize); in nf_ct_expect_dst_hash()
H A Dxt_hashlimit.c195 return reciprocal_scale(hash, ht->cfg.size); in hash_dst()
/OK3568_Linux_fs/kernel/include/net/
H A Dcodel_impl.h97 return t + reciprocal_scale(interval, rec_inv_sqrt << REC_INV_SQRT_SHIFT); in codel_control_law()
H A Dfq_impl.h113 return reciprocal_scale(hash, fq->flows_cnt); in fq_flow_idx()
/OK3568_Linux_fs/kernel/net/core/
H A Dsock_reuseport.c309 i = j = reciprocal_scale(hash, socks); in reuseport_select_sock()
H A Ddev.c3198 return (u16) reciprocal_scale(skb_get_hash(skb), qcount) + qoffset; in skb_tx_hash()
3950 queue_index = map->queues[reciprocal_scale( in __get_xps_queue_idx()
4431 tcpu = map->cpus[reciprocal_scale(hash, map->len)]; in get_rps_cpu()
/OK3568_Linux_fs/kernel/net/sched/
H A Dsch_fq_pie.c76 return reciprocal_scale(skb_get_hash(skb), q->flows_cnt); in fq_pie_hash()
H A Dsch_fq_codel.c73 return reciprocal_scale(skb_get_hash(skb), q->flows_cnt); in fq_codel_hash()
H A Dsch_cake.c441 return ktime_add_ns(t, reciprocal_scale(interval, in cobalt_control()
/OK3568_Linux_fs/kernel/include/linux/
H A Dkernel.h305 static inline u32 reciprocal_scale(u32 val, u32 ep_ro) in reciprocal_scale() function
/OK3568_Linux_fs/kernel/net/ipv4/netfilter/
H A Dipt_CLUSTERIP.c383 return reciprocal_scale(hashval, config->num_total_nodes) + 1; in clusterip_hashfn()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dudp.c249 first = reciprocal_scale(rand, remaining) + low; in udp_lib_get_port()
/OK3568_Linux_fs/kernel/net/packet/
H A Daf_packet.c1328 return reciprocal_scale(__skb_get_hash_symmetric(skb), num); in fanout_demux_hash()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c8523 txq += reciprocal_scale(skb_get_hash(skb), in ixgbe_select_queue()