Lines Matching refs:cm_err
1769 con->cm_err = 1; in flag_success_on_conn()
1811 static inline void flag_error_on_conn(struct rtrs_clt_con *con, int cm_err) in flag_error_on_conn() argument
1813 if (con->cm_err == 1) { in flag_error_on_conn()
1821 con->cm_err = cm_err; in flag_error_on_conn()
1830 int cm_err = 0; in rtrs_clt_rdma_cm_handler() local
1834 cm_err = rtrs_rdma_addr_resolved(con); in rtrs_clt_rdma_cm_handler()
1837 cm_err = rtrs_rdma_route_resolved(con); in rtrs_clt_rdma_cm_handler()
1840 con->cm_err = rtrs_rdma_conn_established(con, ev); in rtrs_clt_rdma_cm_handler()
1841 if (likely(!con->cm_err)) { in rtrs_clt_rdma_cm_handler()
1852 cm_err = rtrs_rdma_conn_rejected(con, ev); in rtrs_clt_rdma_cm_handler()
1857 cm_err = -ECONNRESET; in rtrs_clt_rdma_cm_handler()
1861 cm_err = -EHOSTUNREACH; in rtrs_clt_rdma_cm_handler()
1866 cm_err = -ECONNRESET; in rtrs_clt_rdma_cm_handler()
1876 cm_err = -ECONNRESET; in rtrs_clt_rdma_cm_handler()
1880 if (cm_err) { in rtrs_clt_rdma_cm_handler()
1885 flag_error_on_conn(con, cm_err); in rtrs_clt_rdma_cm_handler()
1909 con->cm_err = 0; in create_cm()
1930 con->cm_err || sess->state != RTRS_CLT_CONNECTING, in create_cm()
1938 if (con->cm_err < 0) { in create_cm()
1939 err = con->cm_err; in create_cm()