Home
last modified time | relevance | path

Searched refs:addr_fold (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/net/netfilter/ipvs/
Dip_vs_dh.c73 __be32 addr_fold = addr->ip; in ip_vs_dh_hashkey() local
77 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_dh_hashkey()
80 return hash_32(ntohl(addr_fold), IP_VS_DH_TAB_BITS); in ip_vs_dh_hashkey()
Dip_vs_sh.c87 __be32 addr_fold = addr->ip; in ip_vs_sh_hashkey() local
91 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_sh_hashkey()
94 return (offset + hash_32(ntohs(port) + ntohl(addr_fold), in ip_vs_sh_hashkey()
Dip_vs_mh.c93 __be32 addr_fold = addr->ip; in ip_vs_mh_hashkey() local
97 addr_fold = addr->ip6[0] ^ addr->ip6[1] ^ in ip_vs_mh_hashkey()
100 v = (offset + ntohs(port) + ntohl(addr_fold)); in ip_vs_mh_hashkey()
Dip_vs_lblc.c152 __be32 addr_fold = addr->ip; in ip_vs_lblc_hashkey() local
156 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_lblc_hashkey()
159 return hash_32(ntohl(addr_fold), IP_VS_LBLC_TAB_BITS); in ip_vs_lblc_hashkey()
Dip_vs_lblcr.c315 __be32 addr_fold = addr->ip; in ip_vs_lblcr_hashkey() local
319 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_lblcr_hashkey()
322 return hash_32(ntohl(addr_fold), IP_VS_LBLCR_TAB_BITS); in ip_vs_lblcr_hashkey()
Dip_vs_ctl.c278 __be32 addr_fold = addr->ip; in ip_vs_svc_hashkey() local
283 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_svc_hashkey()
286 ahash = ntohl(addr_fold); in ip_vs_svc_hashkey()
509 __be32 addr_fold = addr->ip; in ip_vs_rs_hashkey() local
513 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_rs_hashkey()
517 return (ntohl(addr_fold)^(porth>>IP_VS_RTAB_BITS)^porth) in ip_vs_rs_hashkey()
/linux-6.1.9/net/sched/
Dcls_flow.c59 static inline u32 addr_fold(void *addr) in addr_fold() function
73 return addr_fold(skb->sk); in flow_get_src()
83 return addr_fold(skb_dst(skb)) ^ (__force u16)skb_protocol(skb, true); in flow_get_dst()
98 return addr_fold(skb->sk); in flow_get_proto_src()
107 return addr_fold(skb_dst(skb)) ^ (__force u16)skb_protocol(skb, true); in flow_get_proto_dst()
128 return addr_fold(skb_nfct(skb)); in flow_get_nfct()