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
128 inet_bind_bucket_for_each(tb, &head->chain) in inet_csk_get_port()
129 if (net_eq(ib_net(tb), net) && tb->port == rover) { in inet_csk_get_port()
130 if (((tb->fastreuse > 0 && in inet_csk_get_port()
133 (tb->fastreuseport > 0 && in inet_csk_get_port()
135 uid_eq(tb->fastuid, uid))) && in inet_csk_get_port()
136 (tb->num_owners < smallest_size || smallest_size == -1)) { in inet_csk_get_port()
137 smallest_size = tb->num_owners; in inet_csk_get_port()
140 if (!inet_csk(sk)->icsk_af_ops->bind_conflict(sk, tb, false)) { in inet_csk_get_port()
182 inet_bind_bucket_for_each(tb, &head->chain) in inet_csk_get_port()
183 if (net_eq(ib_net(tb), net) && tb->port == snum) in inet_csk_get_port()
186 tb = NULL; in inet_csk_get_port()
189 if (!hlist_empty(&tb->owners)) { in inet_csk_get_port()
193 if (((tb->fastreuse > 0 && in inet_csk_get_port()
195 (tb->fastreuseport > 0 && in inet_csk_get_port()
196 sk->sk_reuseport && uid_eq(tb->fastuid, uid))) && in inet_csk_get_port()
201 if (inet_csk(sk)->icsk_af_ops->bind_conflict(sk, tb, true)) { in inet_csk_get_port()
203 (tb->fastreuseport > 0 && in inet_csk_get_port()
204 sk->sk_reuseport && uid_eq(tb->fastuid, uid))) && in inet_csk_get_port()
216 if (!tb && (tb = inet_bind_bucket_create(hashinfo->bind_bucket_cachep, in inet_csk_get_port()
219 if (hlist_empty(&tb->owners)) { in inet_csk_get_port()
221 tb->fastreuse = 1; in inet_csk_get_port()
223 tb->fastreuse = 0; in inet_csk_get_port()
225 tb->fastreuseport = 1; in inet_csk_get_port()
226 tb->fastuid = uid; in inet_csk_get_port()
228 tb->fastreuseport = 0; in inet_csk_get_port()
230 if (tb->fastreuse && in inet_csk_get_port()
232 tb->fastreuse = 0; in inet_csk_get_port()
233 if (tb->fastreuseport && in inet_csk_get_port()
234 (!sk->sk_reuseport || !uid_eq(tb->fastuid, uid))) in inet_csk_get_port()
235 tb->fastreuseport = 0; in inet_csk_get_port()
239 inet_bind_hash(sk, tb, snum); in inet_csk_get_port()
240 WARN_ON(inet_csk(sk)->icsk_bind_hash != tb); in inet_csk_get_port()