Lines Matching refs:smc
36 struct smc_sock *smc = smc_sk(sk); in smc_diag_msg_common_fill() local
41 if (!smc->clcsock) in smc_diag_msg_common_fill()
43 r->id.idiag_sport = htons(smc->clcsock->sk->sk_num); in smc_diag_msg_common_fill()
44 r->id.idiag_dport = smc->clcsock->sk->sk_dport; in smc_diag_msg_common_fill()
45 r->id.idiag_if = smc->clcsock->sk->sk_bound_dev_if; in smc_diag_msg_common_fill()
47 r->id.idiag_src[0] = smc->clcsock->sk->sk_rcv_saddr; in smc_diag_msg_common_fill()
48 r->id.idiag_dst[0] = smc->clcsock->sk->sk_daddr; in smc_diag_msg_common_fill()
51 memcpy(&r->id.idiag_src, &smc->clcsock->sk->sk_v6_rcv_saddr, in smc_diag_msg_common_fill()
52 sizeof(smc->clcsock->sk->sk_v6_rcv_saddr)); in smc_diag_msg_common_fill()
53 memcpy(&r->id.idiag_dst, &smc->clcsock->sk->sk_v6_daddr, in smc_diag_msg_common_fill()
54 sizeof(smc->clcsock->sk->sk_v6_daddr)); in smc_diag_msg_common_fill()
76 struct smc_sock *smc = smc_sk(sk); in __smc_diag_dump() local
90 if (smc->use_fallback) in __smc_diag_dump()
92 else if (smc->conn.lgr && smc->conn.lgr->is_smcd) in __smc_diag_dump()
100 fallback.reason = smc->fallback_rsn; in __smc_diag_dump()
101 fallback.peer_diagnosis = smc->peer_diagnosis; in __smc_diag_dump()
106 smc->conn.alert_token_local) { in __smc_diag_dump()
107 struct smc_connection *conn = &smc->conn; in __smc_diag_dump()
145 if (smc->conn.lgr && !smc->conn.lgr->is_smcd && in __smc_diag_dump()
147 !list_empty(&smc->conn.lgr->list)) { in __smc_diag_dump()
149 .role = smc->conn.lgr->role, in __smc_diag_dump()
150 .lnk[0].ibport = smc->conn.lnk->ibport, in __smc_diag_dump()
151 .lnk[0].link_id = smc->conn.lnk->link_id, in __smc_diag_dump()
155 smc->conn.lgr->lnk[0].smcibdev->ibdev->name, in __smc_diag_dump()
156 sizeof(smc->conn.lnk->smcibdev->ibdev->name)); in __smc_diag_dump()
158 smc->conn.lnk->gid); in __smc_diag_dump()
160 smc->conn.lnk->peer_gid); in __smc_diag_dump()
165 if (smc->conn.lgr && smc->conn.lgr->is_smcd && in __smc_diag_dump()
167 !list_empty(&smc->conn.lgr->list)) { in __smc_diag_dump()
168 struct smc_connection *conn = &smc->conn; in __smc_diag_dump()