Orabug:
26522310
Enhance diagnosabilty,when an RDS IB/CM connection gets into
"Receiver Not Ready" state.These are the data added to the
per-RDS/IB connection info that is currently displayed through
rds-info:
- w_alloc_ctr of the receive ring (struct rds_ib_work_ring)
- w_free_ctr
- qp_num number of the connection
Signed-off-by: hui.han <hui.han@oracle.com>
Reviewed-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
uint32_t frag;
uint16_t flow_ctl_post_credit;
uint16_t flow_ctl_send_credit;
+ uint32_t qp_num;
+ uint32_t w_alloc_ctr;
+ uint32_t w_free_ctr;
+
};
/*
iinfo->max_send_wr = ic->i_send_ring.w_nr;
iinfo->max_recv_wr = ic->i_recv_ring.w_nr;
iinfo->max_send_sge = rds_ibdev->max_sge;
+ iinfo->qp_num = ic->i_cm_id->qp->qp_num;
+ iinfo->w_alloc_ctr = ic->i_recv_ring.w_alloc_ctr;
+ iinfo->w_free_ctr = (u32) atomic_read(&ic->i_recv_ring.w_free_ctr);
iinfo->flow_ctl_post_credit =
IB_GET_POST_CREDITS(atomic_read(&ic->i_credits));
iinfo->flow_ctl_send_credit =