Lines Matching refs:clcsock
64 smc->clcsock->sk->sk_prot->keepalive(smc->clcsock->sk, val); in smc_set_keepalive()
128 smc->clcsock->file->private_data = smc->sk.sk_socket; in smc_restore_fallback_changes()
129 smc->clcsock->file = NULL; in smc_restore_fallback_changes()
146 rc = kernel_sock_shutdown(smc->clcsock, SHUT_RDWR); in __smc_release()
156 if (smc->clcsock) { in __smc_release()
181 tcp_abort(smc->clcsock->sk, ECONNABORTED); in smc_release()
276 smc->clcsock->sk->sk_reuse = sk->sk_reuse; in smc_bind()
277 rc = kernel_bind(smc->clcsock, uaddr, addr_len); in smc_bind()
324 smc_copy_sock_settings(smc->clcsock->sk, &smc->sk, SK_FLAGS_SMC_TO_CLC); in smc_copy_sock_settings_to_clc()
334 smc_copy_sock_settings(&smc->sk, smc->clcsock->sk, SK_FLAGS_CLC_TO_SMC); in smc_copy_sock_settings_to_smc()
361 struct net *net = sock_net(smc->clcsock->sk); in smc_clnt_conf_first_link()
468 smc->clcsock->file = smc->sk.sk_socket->file; in smc_switch_to_fallback()
469 smc->clcsock->file->private_data = smc->clcsock; in smc_switch_to_fallback()
531 smc_pnet_find_roce_resource(smc->clcsock->sk, ini); in smc_find_rdma_device()
542 smc_pnet_find_ism_resource(smc->clcsock->sk, ini); in smc_find_ism_device()
714 if (!tcp_sk(smc->clcsock->sk)->syn_smc) in __smc_connect()
722 if (smc_vlan_by_tcpsk(smc->clcsock, &ini)) in __smc_connect()
780 lock_sock(smc->clcsock->sk); in smc_connect_work()
781 if (smc->clcsock->sk->sk_err) { in smc_connect_work()
782 smc->sk.sk_err = smc->clcsock->sk->sk_err; in smc_connect_work()
783 } else if ((1 << smc->clcsock->sk->sk_state) & in smc_connect_work()
785 rc = sk_stream_wait_connect(smc->clcsock->sk, &timeo); in smc_connect_work()
787 ((1 << smc->clcsock->sk->sk_state) & in smc_connect_work()
791 release_sock(smc->clcsock->sk); in smc_connect_work()
812 smc->clcsock->sk->sk_write_space(smc->clcsock->sk); in smc_connect_work()
847 tcp_sk(smc->clcsock->sk)->syn_smc = 1; in smc_connect()
852 rc = kernel_connect(smc->clcsock, addr, alen, flags); in smc_connect()
896 if (lsmc->clcsock) in smc_clcsock_accept()
897 rc = kernel_accept(lsmc->clcsock, &new_clcsock, 0); in smc_clcsock_accept()
913 (*new_smc)->clcsock = new_clcsock; in smc_clcsock_accept()
959 if (isk->clcsock) { in smc_accept_dequeue()
960 sock_release(isk->clcsock); in smc_accept_dequeue()
961 isk->clcsock = NULL; in smc_accept_dequeue()
969 smc_sk(new_sk)->clcsock->file = new_sock->file; in smc_accept_dequeue()
970 isk->clcsock->file->private_data = isk->clcsock; in smc_accept_dequeue()
994 struct net *net = sock_net(smc->clcsock->sk); in smc_serv_conf_first_link()
1120 struct socket *newclcsock = new_smc->clcsock; in smc_listen_prfx_check()
1234 struct socket *newclcsock = new_smc->clcsock; in smc_listen_work()
1279 if (smc_vlan_by_tcpsk(new_smc->clcsock, &ini)) { in smc_listen_work()
1417 tcp_sk(smc->clcsock->sk)->syn_smc = 1; in smc_listen()
1419 rc = kernel_listen(smc->clcsock, backlog); in smc_listen()
1486 struct sock *clcsk = smc_sk(nsk)->clcsock->sk; in smc_accept()
1515 return smc->clcsock->ops->getname(smc->clcsock, addr, peer); in smc_getname()
1542 rc = smc->clcsock->ops->sendmsg(smc->clcsock, msg, len); in smc_sendmsg()
1575 rc = smc->clcsock->ops->recvmsg(smc->clcsock, msg, len, flags); in smc_recvmsg()
1612 mask = smc->clcsock->ops->poll(file, smc->clcsock, wait); in smc_poll()
1613 sk->sk_err = smc->clcsock->sk->sk_err; in smc_poll()
1626 mask |= smc->clcsock->ops->poll(file, smc->clcsock, in smc_poll()
1628 sk->sk_err = smc->clcsock->sk->sk_err; in smc_poll()
1675 rc = kernel_sock_shutdown(smc->clcsock, how); in smc_shutdown()
1676 sk->sk_shutdown = smc->clcsock->sk->sk_shutdown; in smc_shutdown()
1693 if (smc->clcsock) in smc_shutdown()
1694 rc1 = kernel_sock_shutdown(smc->clcsock, how); in smc_shutdown()
1715 rc = smc->clcsock->ops->setsockopt(smc->clcsock, level, optname, in smc_setsockopt()
1717 if (smc->clcsock->sk->sk_err) { in smc_setsockopt()
1718 sk->sk_err = smc->clcsock->sk->sk_err; in smc_setsockopt()
1781 return smc->clcsock->ops->getsockopt(smc->clcsock, level, optname, in smc_getsockopt()
1797 if (!smc->clcsock) { in smc_ioctl()
1801 answ = smc->clcsock->ops->ioctl(smc->clcsock, cmd, arg); in smc_ioctl()
1881 rc = kernel_sendpage(smc->clcsock, page, offset, in smc_sendpage()
1922 rc = smc->clcsock->ops->splice_read(smc->clcsock, ppos, in smc_splice_read()
1991 &smc->clcsock); in smc_create()
1996 smc->sk.sk_sndbuf = max(smc->clcsock->sk->sk_sndbuf, SMC_BUF_MIN_SIZE); in smc_create()
1997 smc->sk.sk_rcvbuf = max(smc->clcsock->sk->sk_rcvbuf, SMC_BUF_MIN_SIZE); in smc_create()