1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2015-2018 Atomic Rules LLC
10 /* ************************************************************************* */
12 ark_rqp_stats_reset(struct ark_rqpace_t *rqp)
16 /* rqp->cpld_max = 992; */
18 /* rqp->cplh_max = 64; */
21 /* ************************************************************************* */
23 ark_rqp_dump(struct ark_rqpace_t *rqp)
25 if (rqp->err_count_other || rqp->cmpl_errors)
27 "RQP Errors noted: ctrl: %d cplh_hmax %d cpld_max %d"
31 rqp->ctrl, rqp->cplh_max, rqp->cpld_max,
32 "Error Count", rqp->err_cnt,
33 "Error General", rqp->err_count_other,
34 "Cmpl Errors", rqp->cmpl_errors);
36 ARK_PMD_LOG(INFO, "RQP Dump: ctrl: %d cplh_hmax %d cpld_max %d"
38 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32
39 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32
40 ARK_SU32 ARK_SU32 ARK_SU32
41 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32 "\n",
42 rqp->ctrl, rqp->cplh_max, rqp->cpld_max,
43 "Error Count", rqp->err_cnt,
44 "Error General", rqp->err_count_other,
45 "stall_pS", rqp->stall_ps,
46 "stall_pS Min", rqp->stall_ps_min,
47 "stall_pS Max", rqp->stall_ps_max,
48 "req_pS", rqp->req_ps,
49 "req_pS Min", rqp->req_ps_min,
50 "req_pS Max", rqp->req_ps_max,
51 "req_dWPS", rqp->req_dw_ps,
52 "req_dWPS Min", rqp->req_dw_ps_min,
53 "req_dWPS Max", rqp->req_dw_ps_max,
54 "cpl_pS", rqp->cpl_ps,
55 "cpl_pS Min", rqp->cpl_ps_min,
56 "cpl_pS Max", rqp->cpl_ps_max,
57 "cpl_dWPS", rqp->cpl_dw_ps,
58 "cpl_dWPS Min", rqp->cpl_dw_ps_min,
59 "cpl_dWPS Max", rqp->cpl_dw_ps_max,
60 "cplh pending", rqp->cplh_pending,
61 "cpld pending", rqp->cpld_pending,
62 "cplh pending max", rqp->cplh_pending_max,
63 "cpld pending max", rqp->cpld_pending_max);
67 ark_rqp_lasped(struct ark_rqpace_t *rqp)