@@ -120,16 +120,17 @@ void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_even
120
120
rds_conn_destroy (conn );
121
121
return ;
122
122
} else {
123
- pr_notice ("RDS/IB: connected <%pI4,%pI4> version %u.%u%s\n" ,
123
+ pr_notice ("RDS/IB: %s conn connected <%pI4,%pI4> version %u.%u%s\n" ,
124
+ ic -> i_active_side ? "Active" : "Passive" ,
124
125
& conn -> c_laddr , & conn -> c_faddr ,
125
126
RDS_PROTOCOL_MAJOR (conn -> c_version ),
126
127
RDS_PROTOCOL_MINOR (conn -> c_version ),
127
128
ic -> i_flowctl ? ", flow control" : "" );
128
129
}
129
130
130
- /*
131
- * Init rings and fill recv. this needs to wait until protocol negotiation
132
- * is complete, since ring layout is different from 3.0 to 3 .1.
131
+ /* Init rings and fill recv. this needs to wait until protocol
132
+ * negotiation is complete, since ring layout is different
133
+ * from 3.1 to 4 .1.
133
134
*/
134
135
rds_ib_send_init_ring (ic );
135
136
rds_ib_recv_init_ring (ic );
@@ -685,6 +686,7 @@ int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id)
685
686
if (ic -> i_cm_id == cm_id )
686
687
ret = 0 ;
687
688
}
689
+ ic -> i_active_side = true;
688
690
return ret ;
689
691
}
690
692
@@ -859,6 +861,7 @@ void rds_ib_conn_path_shutdown(struct rds_conn_path *cp)
859
861
ic -> i_sends = NULL ;
860
862
vfree (ic -> i_recvs );
861
863
ic -> i_recvs = NULL ;
864
+ ic -> i_active_side = false;
862
865
}
863
866
864
867
int rds_ib_conn_alloc (struct rds_connection * conn , gfp_t gfp )
0 commit comments