Added per connection flow_ctl_post_credit and
flow_ctl_send_credit to rds-info. These info help
in debugging RDS IB flow control. The newly added
attributes are placed at the bottom of the data
structure to ensure backward compatibility.
Orabug:
22306628
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Wei Lin Guay <wei.lin.guay@oracle.com>
uint8_t sl;
uint32_t cache_allocs;
uint32_t frag;
+ uint16_t flow_ctl_post_credit;
+ uint16_t flow_ctl_send_credit;
};
/*
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->flow_ctl_post_credit =
+ IB_GET_POST_CREDITS(atomic_read(&ic->i_credits));
+ iinfo->flow_ctl_send_credit =
+ IB_GET_SEND_CREDITS(atomic_read(&ic->i_credits));
rds_ib_get_mr_info(rds_ibdev, iinfo);
iinfo->cache_allocs = atomic_read(&ic->i_cache_allocs);
}