Home
last modified time | relevance | path

Searched refs:clcsock (Results 1 – 10 of 10) sorted by relevance

/net/smc/
Daf_smc.c64 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()
[all …]
Dsmc_close.c32 if (smc->clcsock) { in smc_clcsock_release()
33 tcp = smc->clcsock; in smc_clcsock_release()
34 smc->clcsock = NULL; in smc_clcsock_release()
119 if (sk->sk_state != SMC_INIT && smc->clcsock && smc->clcsock->sk) { in smc_close_active_abort()
121 if (smc->clcsock && smc->clcsock->sk) { in smc_close_active_abort()
122 smc->clcsock->sk->sk_err = ECONNABORTED; in smc_close_active_abort()
123 smc->clcsock->sk->sk_state_change(smc->clcsock->sk); in smc_close_active_abort()
200 if (smc->clcsock && smc->clcsock->sk) { in smc_close_active()
201 rc = kernel_sock_shutdown(smc->clcsock, SHUT_RDWR); in smc_close_active()
203 smc->clcsock->sk->sk_data_ready(smc->clcsock->sk); in smc_close_active()
[all …]
Dsmc_diag.c43 if (!smc->clcsock) in smc_diag_msg_common_fill()
45 r->id.idiag_sport = htons(smc->clcsock->sk->sk_num); in smc_diag_msg_common_fill()
46 r->id.idiag_dport = smc->clcsock->sk->sk_dport; in smc_diag_msg_common_fill()
47 r->id.idiag_if = smc->clcsock->sk->sk_bound_dev_if; in smc_diag_msg_common_fill()
52 r->id.idiag_src[0] = smc->clcsock->sk->sk_rcv_saddr; in smc_diag_msg_common_fill()
53 r->id.idiag_dst[0] = smc->clcsock->sk->sk_daddr; in smc_diag_msg_common_fill()
56 memcpy(&r->id.idiag_src, &smc->clcsock->sk->sk_v6_rcv_saddr, in smc_diag_msg_common_fill()
57 sizeof(smc->clcsock->sk->sk_v6_rcv_saddr)); in smc_diag_msg_common_fill()
58 memcpy(&r->id.idiag_dst, &smc->clcsock->sk->sk_v6_daddr, in smc_diag_msg_common_fill()
59 sizeof(smc->clcsock->sk->sk_v6_daddr)); in smc_diag_msg_common_fill()
Dsmc_clc.c147 static int smc_clc_prfx_set(struct socket *clcsock, in smc_clc_prfx_set() argument
151 struct dst_entry *dst = sk_dst_get(clcsock->sk); in smc_clc_prfx_set()
167 kernel_getsockname(clcsock, (struct sockaddr *)&addrs); in smc_clc_prfx_set()
238 int smc_clc_prfx_match(struct socket *clcsock, in smc_clc_prfx_match() argument
241 struct dst_entry *dst = sk_dst_get(clcsock->sk); in smc_clc_prfx_match()
273 long rcvtimeo = smc->clcsock->sk->sk_rcvtimeo; in smc_clc_wait_msg()
274 struct sock *clc_sk = smc->clcsock->sk; in smc_clc_wait_msg()
294 len = sock_recvmsg(smc->clcsock, &msg, krflags); in smc_clc_wait_msg()
338 len = sock_recvmsg(smc->clcsock, &msg, krflags); in smc_clc_wait_msg()
382 len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, in smc_clc_send_decline()
[all …]
Dsmc.h195 struct socket *clcsock; /* internal tcp socket */ member
255 return (smc->clcsock->sk->sk_policy[0] || in using_ipsec()
256 smc->clcsock->sk->sk_policy[1]) ? true : false; in using_ipsec()
Dsmc_cdc.c299 if (smc->clcsock && smc->clcsock->sk) in smc_cdc_msg_recv_action()
300 smc->clcsock->sk->sk_shutdown |= RCV_SHUTDOWN; in smc_cdc_msg_recv_action()
Dsmc_clc.h190 int smc_clc_prfx_match(struct socket *clcsock,
Dsmc_core.h302 int smc_vlan_by_tcpsk(struct socket *clcsock, struct smc_init_info *ini);
Dsmc_core.c546 int smc_vlan_by_tcpsk(struct socket *clcsock, struct smc_init_info *ini) in smc_vlan_by_tcpsk() argument
548 struct dst_entry *dst = sk_dst_get(clcsock->sk); in smc_vlan_by_tcpsk()
Dsmc_tx.c125 struct tcp_sock *tp = tcp_sk(smc->clcsock->sk); in smc_tx_is_corked()