mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 02:34:23 +08:00
RDMA/efa: Report create CQ error counter
Create CQ errors are already being counted, report them along all other counters. Link: https://lore.kernel.org/r/20200420062213.44577-2-galpress@amazon.com Reviewed-by: Firas JahJah <firasj@amazon.com> Reviewed-by: Yossi Leybovich <sleybo@amazon.com> Signed-off-by: Gal Pressman <galpress@amazon.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
cfc1a89e44
commit
b2ea69b3b4
@ -41,6 +41,7 @@ struct efa_user_mmap_entry {
|
|||||||
op(EFA_KEEP_ALIVE_RCVD, "keep_alive_rcvd") \
|
op(EFA_KEEP_ALIVE_RCVD, "keep_alive_rcvd") \
|
||||||
op(EFA_ALLOC_PD_ERR, "alloc_pd_err") \
|
op(EFA_ALLOC_PD_ERR, "alloc_pd_err") \
|
||||||
op(EFA_CREATE_QP_ERR, "create_qp_err") \
|
op(EFA_CREATE_QP_ERR, "create_qp_err") \
|
||||||
|
op(EFA_CREATE_CQ_ERR, "create_cq_err") \
|
||||||
op(EFA_REG_MR_ERR, "reg_mr_err") \
|
op(EFA_REG_MR_ERR, "reg_mr_err") \
|
||||||
op(EFA_ALLOC_UCONTEXT_ERR, "alloc_ucontext_err") \
|
op(EFA_ALLOC_UCONTEXT_ERR, "alloc_ucontext_err") \
|
||||||
op(EFA_CREATE_AH_ERR, "create_ah_err")
|
op(EFA_CREATE_AH_ERR, "create_ah_err")
|
||||||
@ -1753,6 +1754,7 @@ int efa_get_hw_stats(struct ib_device *ibdev, struct rdma_hw_stats *stats,
|
|||||||
stats->value[EFA_KEEP_ALIVE_RCVD] = atomic64_read(&s->keep_alive_rcvd);
|
stats->value[EFA_KEEP_ALIVE_RCVD] = atomic64_read(&s->keep_alive_rcvd);
|
||||||
stats->value[EFA_ALLOC_PD_ERR] = atomic64_read(&s->sw_stats.alloc_pd_err);
|
stats->value[EFA_ALLOC_PD_ERR] = atomic64_read(&s->sw_stats.alloc_pd_err);
|
||||||
stats->value[EFA_CREATE_QP_ERR] = atomic64_read(&s->sw_stats.create_qp_err);
|
stats->value[EFA_CREATE_QP_ERR] = atomic64_read(&s->sw_stats.create_qp_err);
|
||||||
|
stats->value[EFA_CREATE_CQ_ERR] = atomic64_read(&s->sw_stats.create_cq_err);
|
||||||
stats->value[EFA_REG_MR_ERR] = atomic64_read(&s->sw_stats.reg_mr_err);
|
stats->value[EFA_REG_MR_ERR] = atomic64_read(&s->sw_stats.reg_mr_err);
|
||||||
stats->value[EFA_ALLOC_UCONTEXT_ERR] = atomic64_read(&s->sw_stats.alloc_ucontext_err);
|
stats->value[EFA_ALLOC_UCONTEXT_ERR] = atomic64_read(&s->sw_stats.alloc_ucontext_err);
|
||||||
stats->value[EFA_CREATE_AH_ERR] = atomic64_read(&s->sw_stats.create_ah_err);
|
stats->value[EFA_CREATE_AH_ERR] = atomic64_read(&s->sw_stats.create_ah_err);
|
||||||
|
Loading…
Reference in New Issue
Block a user