Home
last modified time | relevance | path

Searched refs:score (Results 1 – 6 of 6) sorted by relevance

/net/ipv6/
Dinet6_hashtables.c139 int score = -1; in compute_score() local
145 score = 1; in compute_score()
149 score++; in compute_score()
154 score++; in compute_score()
157 return score; in compute_score()
168 int score, hiscore, matches = 0, reuseport = 0; in inet6_lookup_listener() local
178 score = compute_score(sk, net, hnum, daddr, dif); in inet6_lookup_listener()
179 if (score > hiscore) { in inet6_lookup_listener()
180 hiscore = score; in inet6_lookup_listener()
188 } else if (score == hiscore && reuseport) { in inet6_lookup_listener()
Dudp.c131 int score = -1; in compute_score() local
138 score = 0; in compute_score()
142 score++; in compute_score()
147 score++; in compute_score()
152 score++; in compute_score()
157 score++; in compute_score()
160 return score; in compute_score()
169 int score = -1; in compute_score2() local
178 score = 0; in compute_score2()
182 score++; in compute_score2()
[all …]
Dip6_gre.c128 int score, cand_score = 4; in ip6gre_tunnel_lookup() local
141 score = 0; in ip6gre_tunnel_lookup()
143 score |= 1; in ip6gre_tunnel_lookup()
145 score |= 2; in ip6gre_tunnel_lookup()
146 if (score == 0) in ip6gre_tunnel_lookup()
149 if (score < cand_score) { in ip6gre_tunnel_lookup()
151 cand_score = score; in ip6gre_tunnel_lookup()
165 score = 0; in ip6gre_tunnel_lookup()
167 score |= 1; in ip6gre_tunnel_lookup()
169 score |= 2; in ip6gre_tunnel_lookup()
[all …]
Daddrconf.c1244 struct ipv6_saddr_score *score, in ipv6_get_saddr_eval() argument
1250 if (i <= score->rule) { in ipv6_get_saddr_eval()
1253 ret = score->scopedist; in ipv6_get_saddr_eval()
1256 ret = score->matchlen; in ipv6_get_saddr_eval()
1259 ret = !!test_bit(i, score->scorebits); in ipv6_get_saddr_eval()
1267 ret = !!score->ifa; in ipv6_get_saddr_eval()
1271 ret = ipv6_addr_equal(&score->ifa->addr, dst->addr); in ipv6_get_saddr_eval()
1295 ret = __ipv6_addr_src_scope(score->addr_type); in ipv6_get_saddr_eval()
1300 score->scopedist = ret; in ipv6_get_saddr_eval()
1307 if (!ipv6_use_optimistic_addr(score->ifa->idev)) in ipv6_get_saddr_eval()
[all …]
/net/ipv4/
Dinet_hashtables.c148 int score = -1; in compute_score() local
154 score = sk->sk_family == PF_INET ? 2 : 1; in compute_score()
158 score += 4; in compute_score()
163 score += 4; in compute_score()
166 return score; in compute_score()
187 int score, hiscore, matches = 0, reuseport = 0; in __inet_lookup_listener() local
195 score = compute_score(sk, net, hnum, daddr, dif); in __inet_lookup_listener()
196 if (score > hiscore) { in __inet_lookup_listener()
198 hiscore = score; in __inet_lookup_listener()
205 } else if (score == hiscore && reuseport) { in __inet_lookup_listener()
Dudp.c340 int score = -1; in compute_score() local
346 score = (sk->sk_family == PF_INET ? 2 : 1); in compute_score()
350 score += 4; in compute_score()
355 score += 4; in compute_score()
360 score += 4; in compute_score()
365 score += 4; in compute_score()
368 return score; in compute_score()
378 int score = -1; in compute_score2() local
388 score = (sk->sk_family == PF_INET ? 2 : 1); in compute_score2()
392 score += 4; in compute_score2()
[all …]