Searched refs:clcsock (Results 1 – 11 of 11) sorted by relevance
/kernel/linux/linux-5.10/net/smc/ |
D | af_smc.c | 69 smc->clcsock->sk->sk_prot->keepalive(smc->clcsock->sk, val); in smc_set_keepalive() 133 if (smc->clcsock->file) { /* non-accepted sockets have no file yet */ in smc_restore_fallback_changes() 134 smc->clcsock->file->private_data = smc->sk.sk_socket; in smc_restore_fallback_changes() 135 smc->clcsock->file = NULL; in smc_restore_fallback_changes() 155 rc = kernel_sock_shutdown(smc->clcsock, in __smc_release() 167 if (smc->clcsock) { in __smc_release() 193 tcp_abort(smc->clcsock->sk, ECONNABORTED); in smc_release() 291 smc->clcsock->sk->sk_reuse = sk->sk_reuse; in smc_bind() 292 rc = kernel_bind(smc->clcsock, uaddr, addr_len); in smc_bind() 339 smc_copy_sock_settings(smc->clcsock->sk, &smc->sk, SK_FLAGS_SMC_TO_CLC); in smc_copy_sock_settings_to_clc() [all …]
|
D | smc_close.c | 31 if (smc->clcsock) { in smc_clcsock_release() 32 tcp = smc->clcsock; in smc_clcsock_release() 33 smc->clcsock = NULL; in smc_clcsock_release() 129 if (sk->sk_state != SMC_INIT && smc->clcsock && smc->clcsock->sk) { in smc_close_active_abort() 131 if (smc->clcsock && smc->clcsock->sk) in smc_close_active_abort() 132 tcp_abort(smc->clcsock->sk, ECONNABORTED); in smc_close_active_abort() 213 if (smc->clcsock && smc->clcsock->sk) { in smc_close_active() 214 smc->clcsock->sk->sk_data_ready = smc->clcsk_data_ready; in smc_close_active() 215 smc->clcsock->sk->sk_user_data = NULL; in smc_close_active() 216 rc = kernel_sock_shutdown(smc->clcsock, SHUT_RDWR); in smc_close_active() [all …]
|
D | smc_diag.c | 54 if (!smc->clcsock) in smc_diag_msg_common_fill() 56 r->id.idiag_sport = htons(smc->clcsock->sk->sk_num); in smc_diag_msg_common_fill() 57 r->id.idiag_dport = smc->clcsock->sk->sk_dport; in smc_diag_msg_common_fill() 58 r->id.idiag_if = smc->clcsock->sk->sk_bound_dev_if; in smc_diag_msg_common_fill() 60 r->id.idiag_src[0] = smc->clcsock->sk->sk_rcv_saddr; in smc_diag_msg_common_fill() 61 r->id.idiag_dst[0] = smc->clcsock->sk->sk_daddr; in smc_diag_msg_common_fill() 64 memcpy(&r->id.idiag_src, &smc->clcsock->sk->sk_v6_rcv_saddr, in smc_diag_msg_common_fill() 65 sizeof(smc->clcsock->sk->sk_v6_rcv_saddr)); in smc_diag_msg_common_fill() 66 memcpy(&r->id.idiag_dst, &smc->clcsock->sk->sk_v6_daddr, in smc_diag_msg_common_fill() 67 sizeof(smc->clcsock->sk->sk_v6_daddr)); in smc_diag_msg_common_fill()
|
D | smc_clc.c | 214 static int smc_clc_prfx_set(struct socket *clcsock, in smc_clc_prfx_set() argument 218 struct dst_entry *dst = sk_dst_get(clcsock->sk); in smc_clc_prfx_set() 233 if (kernel_getsockname(clcsock, (struct sockaddr *)&addrs) < 0) in smc_clc_prfx_set() 305 int smc_clc_prfx_match(struct socket *clcsock, in smc_clc_prfx_match() argument 308 struct dst_entry *dst = sk_dst_get(clcsock->sk); in smc_clc_prfx_match() 340 long rcvtimeo = smc->clcsock->sk->sk_rcvtimeo; in smc_clc_wait_msg() 341 struct sock *clc_sk = smc->clcsock->sk; in smc_clc_wait_msg() 362 len = sock_recvmsg(smc->clcsock, &msg, krflags); in smc_clc_wait_msg() 409 len = sock_recvmsg(smc->clcsock, &msg, krflags); in smc_clc_wait_msg() 425 len = sock_recvmsg(smc->clcsock, &msg, krflags); in smc_clc_wait_msg() [all …]
|
D | smc.h | 219 struct socket *clcsock; /* internal tcp socket */ member 287 return (smc->clcsock->sk->sk_policy[0] || in using_ipsec() 288 smc->clcsock->sk->sk_policy[1]) ? true : false; in using_ipsec()
|
D | smc_cdc.c | 368 if (smc->clcsock && smc->clcsock->sk) in smc_cdc_msg_recv_action() 369 smc->clcsock->sk->sk_shutdown |= RCV_SHUTDOWN; in smc_cdc_msg_recv_action()
|
D | smc_clc.h | 321 int smc_clc_prfx_match(struct socket *clcsock,
|
D | smc_core.h | 399 int smc_vlan_by_tcpsk(struct socket *clcsock, struct smc_init_info *ini);
|
D | smc_tx.c | 126 struct tcp_sock *tp = tcp_sk(smc->clcsock->sk); in smc_tx_is_corked()
|
D | smc_core.c | 1226 int smc_vlan_by_tcpsk(struct socket *clcsock, struct smc_init_info *ini) in smc_vlan_by_tcpsk() argument 1228 struct dst_entry *dst = sk_dst_get(clcsock->sk); in smc_vlan_by_tcpsk()
|
D | smc_llc.c | 1779 struct net *net = sock_net(smc->clcsock->sk); in smc_llc_lgr_init()
|