|
@@ -151,6 +151,7 @@ struct rds_ib_connection {
|
|
|
u64 i_ack_recv; /* last ACK received */
|
|
|
struct rds_ib_refill_cache i_cache_incs;
|
|
|
struct rds_ib_refill_cache i_cache_frags;
|
|
|
+ atomic_t i_cache_allocs;
|
|
|
|
|
|
/* sending acks */
|
|
|
unsigned long i_ack_flags;
|
|
@@ -254,6 +255,8 @@ struct rds_ib_statistics {
|
|
|
uint64_t s_ib_rx_refill_from_cq;
|
|
|
uint64_t s_ib_rx_refill_from_thread;
|
|
|
uint64_t s_ib_rx_alloc_limit;
|
|
|
+ uint64_t s_ib_rx_total_frags;
|
|
|
+ uint64_t s_ib_rx_total_incs;
|
|
|
uint64_t s_ib_rx_credit_updates;
|
|
|
uint64_t s_ib_ack_sent;
|
|
|
uint64_t s_ib_ack_send_failure;
|
|
@@ -276,6 +279,8 @@ struct rds_ib_statistics {
|
|
|
uint64_t s_ib_rdma_mr_1m_reused;
|
|
|
uint64_t s_ib_atomic_cswp;
|
|
|
uint64_t s_ib_atomic_fadd;
|
|
|
+ uint64_t s_ib_recv_added_to_cache;
|
|
|
+ uint64_t s_ib_recv_removed_from_cache;
|
|
|
};
|
|
|
|
|
|
extern struct workqueue_struct *rds_ib_wq;
|
|
@@ -406,6 +411,8 @@ int rds_ib_xmit_atomic(struct rds_connection *conn, struct rm_atomic_op *op);
|
|
|
/* ib_stats.c */
|
|
|
DECLARE_PER_CPU(struct rds_ib_statistics, rds_ib_stats);
|
|
|
#define rds_ib_stats_inc(member) rds_stats_inc_which(rds_ib_stats, member)
|
|
|
+#define rds_ib_stats_add(member, count) \
|
|
|
+ rds_stats_add_which(rds_ib_stats, member, count)
|
|
|
unsigned int rds_ib_stats_info_copy(struct rds_info_iterator *iter,
|
|
|
unsigned int avail);
|
|
|
|