Home
last modified time | relevance | path

Searched refs:seed (Results 1 – 17 of 17) sorted by relevance

/net/netfilter/
Dnft_hash.c22 u32 seed; member
34 h = reciprocal_scale(jhash(data, priv->len, priv->seed), in nft_jhash_eval()
106 priv->seed = ntohl(nla_get_be32(tb[NFTA_HASH_SEED])); in nft_jhash_init()
109 get_random_bytes(&priv->seed, sizeof(priv->seed)); in nft_jhash_init()
155 nla_put_be32(skb, NFTA_HASH_SEED, htonl(priv->seed))) in nft_jhash_dump()
Dnft_set_hash.c40 static inline u32 nft_rhash_key(const void *data, u32 len, u32 seed) in nft_rhash_key() argument
44 return jhash(arg->key, len, seed); in nft_rhash_key()
47 static inline u32 nft_rhash_obj(const void *data, u32 len, u32 seed) in nft_rhash_obj() argument
51 return jhash(nft_set_ext_key(&he->ext), len, seed); in nft_rhash_obj()
473 u32 seed; member
492 hash = jhash(key, set->klen, priv->seed); in nft_hash_lookup()
512 hash = jhash(elem->key.val.data, set->klen, priv->seed); in nft_hash_get()
533 hash = jhash_1word(k1, priv->seed); in nft_hash_lookup_fast()
554 hash = jhash_1word(k1, priv->seed); in nft_jhash()
556 hash = jhash(key, set->klen, priv->seed); in nft_jhash()
[all …]
Dnf_flow_table_core.c226 static u32 flow_offload_hash(const void *data, u32 len, u32 seed) in flow_offload_hash() argument
230 return jhash(tuple, offsetof(struct flow_offload_tuple, __hash), seed); in flow_offload_hash()
233 static u32 flow_offload_hash_obj(const void *data, u32 len, u32 seed) in flow_offload_hash_obj() argument
237 return jhash(&tuplehash->tuple, offsetof(struct flow_offload_tuple, __hash), seed); in flow_offload_hash_obj()
Dnf_tables_api.c47 static u32 nft_chain_hash(const void *data, u32 len, u32 seed);
48 static u32 nft_chain_hash_obj(const void *data, u32 len, u32 seed);
51 static u32 nft_objname_hash(const void *data, u32 len, u32 seed);
52 static u32 nft_objname_hash_obj(const void *data, u32 len, u32 seed);
1282 static u32 nft_chain_hash(const void *data, u32 len, u32 seed) in nft_chain_hash() argument
1286 return jhash(name, strlen(name), seed); in nft_chain_hash()
1289 static u32 nft_chain_hash_obj(const void *data, u32 len, u32 seed) in nft_chain_hash_obj() argument
1293 return nft_chain_hash(chain->name, 0, seed); in nft_chain_hash_obj()
1305 static u32 nft_objname_hash(const void *data, u32 len, u32 seed) in nft_objname_hash() argument
1309 seed ^= hash_ptr(k->table, 32); in nft_objname_hash()
[all …]
/net/ceph/
Ddebugfs.c97 pg->pgid.seed); in osdmap_show()
108 pg->pgid.seed, pg->primary_temp.osd); in osdmap_show()
115 pg->pgid.seed); in osdmap_show()
126 pg->pgid.seed); in osdmap_show()
178 seq_printf(s, "%llu.%x", spgid->pgid.pool, spgid->pgid.seed); in dump_spgid()
187 seq_printf(s, "osd%d\t%llu.%x\t", t->osd, t->pgid.pool, t->pgid.seed); in dump_target()
Dosdmap.c683 if (lhs->seed < rhs->seed) in ceph_pg_compare()
685 if (lhs->seed > rhs->seed) in ceph_pg_compare()
2297 WARN_ON(pgid->seed >= old_pg_num); in ceph_pg_is_split()
2303 u32 s = next_bit | pgid->seed; in ceph_pg_is_split()
2305 if (s < old_pg_num || s == pgid->seed) in ceph_pg_is_split()
2311 if (s == pgid->seed) in ceph_pg_is_split()
2402 raw_pgid->seed = ceph_str_hash(pi->object_hash, oid->name, in __ceph_object_locator_to_pg()
2405 raw_pgid->pool, raw_pgid->seed); in __ceph_object_locator_to_pg()
2418 raw_pgid->seed = ceph_str_hash(pi->object_hash, buf, total); in __ceph_object_locator_to_pg()
2423 raw_pgid->pool, raw_pgid->seed); in __ceph_object_locator_to_pg()
[all …]
Dosd_client.c1659 last_pgid.seed = ceph_stable_mod(pgid.seed, t->pg_num, t->pg_num_mask); in calc_target()
2020 hoid->hash = t->pgid.seed; in hoid_fill_from_target()
2051 backoff->spgid.pgid.seed, backoff->spgid.shard, backoff->id); in should_plug_request()
2136 ceph_encode_32(p, pgid->seed); in encode_pgid()
2180 ceph_encode_32(&p, req->r_t.pgid.seed); /* raw hash */ in encode_request_partial()
2305 pgid.seed = le32_to_cpu(head.hash); in encode_request_finish()
2360 __func__, req, req->r_tid, req->r_t.pgid.pool, req->r_t.pgid.seed, in send_request()
2361 req->r_t.spgid.pgid.pool, req->r_t.spgid.pgid.seed, in send_request()
3802 __func__, req, req->r_tid, m.flags, m.pgid.pool, m.pgid.seed, in handle_reply()
3847 req->r_t.pgid.seed = 0; in handle_reply()
[all …]
/net/ieee802154/6lowpan/
Dreassembly.c490 static u32 lowpan_key_hashfn(const void *data, u32 len, u32 seed) in lowpan_key_hashfn() argument
493 sizeof(struct frag_lowpan_compare_key) / sizeof(u32), seed); in lowpan_key_hashfn()
496 static u32 lowpan_obj_hashfn(const void *data, u32 len, u32 seed) in lowpan_obj_hashfn() argument
501 sizeof(struct frag_lowpan_compare_key) / sizeof(u32), seed); in lowpan_obj_hashfn()
/net/sctp/
Dinput.c826 const union sctp_addr *paddr, __u32 seed) in sctp_hashfn() argument
831 addr = jhash(&paddr->v6.sin6_addr, 16, seed); in sctp_hashfn()
836 (__force __u32)lport, net_hash_mix(net), seed); in sctp_hashfn()
908 static inline __u32 sctp_hash_obj(const void *data, u32 len, u32 seed) in sctp_hash_obj() argument
914 &t->ipaddr, seed); in sctp_hash_obj()
917 static inline __u32 sctp_hash_key(const void *data, u32 len, u32 seed) in sctp_hash_key() argument
921 return sctp_hashfn(x->net, x->lport, x->paddr, seed); in sctp_hash_key()
/net/sunrpc/auth_gss/
Dgss_krb5_internal.h141 u32 usage, u8 seed, gfp_t gfp_mask) in krb5_derive_key() argument
152 label_data[4] = seed; in krb5_derive_key()
/net/ipv4/
Dip_fragment.c717 static u32 ip4_key_hashfn(const void *data, u32 len, u32 seed) in ip4_key_hashfn() argument
720 sizeof(struct frag_v4_compare_key) / sizeof(u32), seed); in ip4_key_hashfn()
723 static u32 ip4_obj_hashfn(const void *data, u32 len, u32 seed) in ip4_obj_hashfn() argument
728 sizeof(struct frag_v4_compare_key) / sizeof(u32), seed); in ip4_obj_hashfn()
/net/sched/
Dsch_netem.c109 u64 seed; member
1064 q->prng.seed = nla_get_u64(tb[TCA_NETEM_PRNG_SEED]); in netem_change()
1066 q->prng.seed = get_random_u64(); in netem_change()
1067 prandom_seed_state(&q->prng.prng_state, q->prng.seed); in netem_change()
1232 if (nla_put_u64_64bit(skb, TCA_NETEM_PRNG_SEED, q->prng.seed, in netem_dump()
/net/mac80211/
Dmesh_pathtbl.c21 static u32 mesh_table_hash(const void *addr, u32 len, u32 seed) in mesh_table_hash() argument
24 return jhash_1word(__get_unaligned_cpu32((u8 *)addr + 2), seed); in mesh_table_hash()
/net/core/
Dxdp.c38 static u32 xdp_mem_id_hashfn(const void *data, u32 len, u32 seed) in xdp_mem_id_hashfn() argument
Dfilter.c2019 __be32 *, to, u32, to_size, __wsum, seed) in BPF_CALL_5() argument
2042 return csum_partial(sp->diff, diff_size, seed); in BPF_CALL_5()
/net/xfrm/
Dxfrm_policy.c1457 static u32 xfrm_pol_bin_key(const void *data, u32 len, u32 seed) in xfrm_pol_bin_key() argument
1463 seed); in xfrm_pol_bin_key()
1466 static u32 xfrm_pol_bin_obj(const void *data, u32 len, u32 seed) in xfrm_pol_bin_obj() argument
1470 return xfrm_pol_bin_key(&b->k, 0, seed); in xfrm_pol_bin_obj()
/net/netlink/
Daf_netlink.c2864 static inline u32 netlink_hash(const void *data, u32 len, u32 seed) in netlink_hash() argument
2870 return jhash2((u32 *)&arg, netlink_compare_arg_len / sizeof(u32), seed); in netlink_hash()