Lines Matching refs:tb
47 const struct inet_bind_bucket *tb, bool relax) in inet_csk_bind_conflict() argument
61 sk_for_each_bound(sk2, &tb->owners) { in inet_csk_bind_conflict()
97 struct inet_bind_bucket *tb; in inet_csk_get_port() local
119 inet_bind_bucket_for_each(tb, &head->chain) in inet_csk_get_port()
120 if (net_eq(ib_net(tb), net) && tb->port == rover) { in inet_csk_get_port()
121 if (((tb->fastreuse > 0 && in inet_csk_get_port()
124 (tb->fastreuseport > 0 && in inet_csk_get_port()
126 uid_eq(tb->fastuid, uid))) && in inet_csk_get_port()
127 (tb->num_owners < smallest_size || smallest_size == -1)) { in inet_csk_get_port()
128 smallest_size = tb->num_owners; in inet_csk_get_port()
131 !inet_csk(sk)->icsk_af_ops->bind_conflict(sk, tb, false)) { in inet_csk_get_port()
136 if (!inet_csk(sk)->icsk_af_ops->bind_conflict(sk, tb, false)) { in inet_csk_get_port()
173 inet_bind_bucket_for_each(tb, &head->chain) in inet_csk_get_port()
174 if (net_eq(ib_net(tb), net) && tb->port == snum) in inet_csk_get_port()
177 tb = NULL; in inet_csk_get_port()
180 if (!hlist_empty(&tb->owners)) { in inet_csk_get_port()
184 if (((tb->fastreuse > 0 && in inet_csk_get_port()
186 (tb->fastreuseport > 0 && in inet_csk_get_port()
187 sk->sk_reuseport && uid_eq(tb->fastuid, uid))) && in inet_csk_get_port()
192 if (inet_csk(sk)->icsk_af_ops->bind_conflict(sk, tb, true)) { in inet_csk_get_port()
194 (tb->fastreuseport > 0 && in inet_csk_get_port()
195 sk->sk_reuseport && uid_eq(tb->fastuid, uid))) && in inet_csk_get_port()
207 if (!tb && (tb = inet_bind_bucket_create(hashinfo->bind_bucket_cachep, in inet_csk_get_port()
210 if (hlist_empty(&tb->owners)) { in inet_csk_get_port()
212 tb->fastreuse = 1; in inet_csk_get_port()
214 tb->fastreuse = 0; in inet_csk_get_port()
216 tb->fastreuseport = 1; in inet_csk_get_port()
217 tb->fastuid = uid; in inet_csk_get_port()
219 tb->fastreuseport = 0; in inet_csk_get_port()
221 if (tb->fastreuse && in inet_csk_get_port()
223 tb->fastreuse = 0; in inet_csk_get_port()
224 if (tb->fastreuseport && in inet_csk_get_port()
225 (!sk->sk_reuseport || !uid_eq(tb->fastuid, uid))) in inet_csk_get_port()
226 tb->fastreuseport = 0; in inet_csk_get_port()
230 inet_bind_hash(sk, tb, snum); in inet_csk_get_port()
231 WARN_ON(inet_csk(sk)->icsk_bind_hash != tb); in inet_csk_get_port()