Lines Matching refs:pp

8341 	struct sctp_bind_bucket *pp;  in sctp_get_port_local()  local
8367 sctp_for_each_hentry(pp, &head->chain) in sctp_get_port_local()
8368 if ((pp->port == rover) && in sctp_get_port_local()
8369 net_eq(net, pp->net)) in sctp_get_port_local()
8396 sctp_for_each_hentry(pp, &head->chain) { in sctp_get_port_local()
8397 if ((pp->port == snum) && net_eq(pp->net, net)) in sctp_get_port_local()
8401 pp = NULL; in sctp_get_port_local()
8404 if (!hlist_empty(&pp->owner)) { in sctp_get_port_local()
8414 if ((pp->fastreuse && reuse && in sctp_get_port_local()
8416 (pp->fastreuseport && sk->sk_reuseport && in sctp_get_port_local()
8417 uid_eq(pp->fastuid, uid))) in sctp_get_port_local()
8430 sk_for_each_bound(sk2, &pp->owner) { in sctp_get_port_local()
8456 if (!pp && !(pp = sctp_bucket_create(head, net, snum))) in sctp_get_port_local()
8463 if (hlist_empty(&pp->owner)) { in sctp_get_port_local()
8465 pp->fastreuse = 1; in sctp_get_port_local()
8467 pp->fastreuse = 0; in sctp_get_port_local()
8470 pp->fastreuseport = 1; in sctp_get_port_local()
8471 pp->fastuid = uid; in sctp_get_port_local()
8473 pp->fastreuseport = 0; in sctp_get_port_local()
8476 if (pp->fastreuse && in sctp_get_port_local()
8478 pp->fastreuse = 0; in sctp_get_port_local()
8480 if (pp->fastreuseport && in sctp_get_port_local()
8481 (!sk->sk_reuseport || !uid_eq(pp->fastuid, uid))) in sctp_get_port_local()
8482 pp->fastreuseport = 0; in sctp_get_port_local()
8492 sk_add_bind_node(sk, &pp->owner); in sctp_get_port_local()
8493 sp->bind_hash = pp; in sctp_get_port_local()
8704 struct sctp_bind_bucket *pp; in sctp_bucket_create() local
8706 pp = kmem_cache_alloc(sctp_bucket_cachep, GFP_ATOMIC); in sctp_bucket_create()
8707 if (pp) { in sctp_bucket_create()
8709 pp->port = snum; in sctp_bucket_create()
8710 pp->fastreuse = 0; in sctp_bucket_create()
8711 INIT_HLIST_HEAD(&pp->owner); in sctp_bucket_create()
8712 pp->net = net; in sctp_bucket_create()
8713 hlist_add_head(&pp->node, &head->chain); in sctp_bucket_create()
8715 return pp; in sctp_bucket_create()
8719 static void sctp_bucket_destroy(struct sctp_bind_bucket *pp) in sctp_bucket_destroy() argument
8721 if (pp && hlist_empty(&pp->owner)) { in sctp_bucket_destroy()
8722 __hlist_del(&pp->node); in sctp_bucket_destroy()
8723 kmem_cache_free(sctp_bucket_cachep, pp); in sctp_bucket_destroy()
8734 struct sctp_bind_bucket *pp; in __sctp_put_port() local
8737 pp = sctp_sk(sk)->bind_hash; in __sctp_put_port()
8741 sctp_bucket_destroy(pp); in __sctp_put_port()
9520 struct sctp_bind_bucket *pp; /* hash list port iterator */ in sctp_sock_migrate() local
9545 pp = sctp_sk(oldsk)->bind_hash; in sctp_sock_migrate()
9546 sk_add_bind_node(newsk, &pp->owner); in sctp_sock_migrate()
9547 sctp_sk(newsk)->bind_hash = pp; in sctp_sock_migrate()