Home
last modified time | relevance | path

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

/linux-6.12.1/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_lblc.c151 __be32 addr_fold = addr->ip; in ip_vs_lblc_hashkey() local
155 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_lblc_hashkey()
158 return hash_32(ntohl(addr_fold), IP_VS_LBLC_TAB_BITS); in ip_vs_lblc_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_lblcr.c314 __be32 addr_fold = addr->ip; in ip_vs_lblcr_hashkey() local
318 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_lblcr_hashkey()
321 return hash_32(ntohl(addr_fold), IP_VS_LBLCR_TAB_BITS); in ip_vs_lblcr_hashkey()
Dip_vs_ctl.c318 __be32 addr_fold = addr->ip; in ip_vs_svc_hashkey() local
323 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_svc_hashkey()
326 ahash = ntohl(addr_fold); in ip_vs_svc_hashkey()
546 __be32 addr_fold = addr->ip; in ip_vs_rs_hashkey() local
550 addr_fold = addr->ip6[0]^addr->ip6[1]^ in ip_vs_rs_hashkey()
554 return (ntohl(addr_fold)^(porth>>IP_VS_RTAB_BITS)^porth) in ip_vs_rs_hashkey()
/linux-6.12.1/net/sched/
Dcls_flow.c60 static inline u32 addr_fold(void *addr) in addr_fold() function
74 return addr_fold(skb->sk); in flow_get_src()
84 return addr_fold(skb_dst(skb)) ^ (__force u16)skb_protocol(skb, true); in flow_get_dst()
99 return addr_fold(skb->sk); in flow_get_proto_src()
108 return addr_fold(skb_dst(skb)) ^ (__force u16)skb_protocol(skb, true); in flow_get_proto_dst()
129 return addr_fold(skb_nfct(skb)); in flow_get_nfct()