Lines Matching +full:name +full:-
2 * Broadcom NetXtreme-E RoCE driver.
4 * Copyright (c) 2016 - 2017, Broadcom. All rights reserved. The term
61 [BNXT_RE_ACTIVE_PD].name = "active_pds",
62 [BNXT_RE_ACTIVE_AH].name = "active_ahs",
63 [BNXT_RE_ACTIVE_QP].name = "active_qps",
64 [BNXT_RE_ACTIVE_SRQ].name = "active_srqs",
65 [BNXT_RE_ACTIVE_CQ].name = "active_cqs",
66 [BNXT_RE_ACTIVE_MR].name = "active_mrs",
67 [BNXT_RE_ACTIVE_MW].name = "active_mws",
68 [BNXT_RE_RX_PKTS].name = "rx_pkts",
69 [BNXT_RE_RX_BYTES].name = "rx_bytes",
70 [BNXT_RE_TX_PKTS].name = "tx_pkts",
71 [BNXT_RE_TX_BYTES].name = "tx_bytes",
72 [BNXT_RE_RECOVERABLE_ERRORS].name = "recoverable_errors",
73 [BNXT_RE_RX_ERRORS].name = "rx_roce_errors",
74 [BNXT_RE_RX_DISCARDS].name = "rx_roce_discards",
75 [BNXT_RE_TO_RETRANSMITS].name = "to_retransmits",
76 [BNXT_RE_SEQ_ERR_NAKS_RCVD].name = "seq_err_naks_rcvd",
77 [BNXT_RE_MAX_RETRY_EXCEEDED].name = "max_retry_exceeded",
78 [BNXT_RE_RNR_NAKS_RCVD].name = "rnr_naks_rcvd",
79 [BNXT_RE_MISSING_RESP].name = "missing_resp",
80 [BNXT_RE_UNRECOVERABLE_ERR].name = "unrecoverable_err",
81 [BNXT_RE_BAD_RESP_ERR].name = "bad_resp_err",
82 [BNXT_RE_LOCAL_QP_OP_ERR].name = "local_qp_op_err",
83 [BNXT_RE_LOCAL_PROTECTION_ERR].name = "local_protection_err",
84 [BNXT_RE_MEM_MGMT_OP_ERR].name = "mem_mgmt_op_err",
85 [BNXT_RE_REMOTE_INVALID_REQ_ERR].name = "remote_invalid_req_err",
86 [BNXT_RE_REMOTE_ACCESS_ERR].name = "remote_access_err",
87 [BNXT_RE_REMOTE_OP_ERR].name = "remote_op_err",
88 [BNXT_RE_DUP_REQ].name = "dup_req",
89 [BNXT_RE_RES_EXCEED_MAX].name = "res_exceed_max",
90 [BNXT_RE_RES_LENGTH_MISMATCH].name = "res_length_mismatch",
91 [BNXT_RE_RES_EXCEEDS_WQE].name = "res_exceeds_wqe",
92 [BNXT_RE_RES_OPCODE_ERR].name = "res_opcode_err",
93 [BNXT_RE_RES_RX_INVALID_RKEY].name = "res_rx_invalid_rkey",
94 [BNXT_RE_RES_RX_DOMAIN_ERR].name = "res_rx_domain_err",
95 [BNXT_RE_RES_RX_NO_PERM].name = "res_rx_no_perm",
96 [BNXT_RE_RES_RX_RANGE_ERR].name = "res_rx_range_err",
97 [BNXT_RE_RES_TX_INVALID_RKEY].name = "res_tx_invalid_rkey",
98 [BNXT_RE_RES_TX_DOMAIN_ERR].name = "res_tx_domain_err",
99 [BNXT_RE_RES_TX_NO_PERM].name = "res_tx_no_perm",
100 [BNXT_RE_RES_TX_RANGE_ERR].name = "res_tx_range_err",
101 [BNXT_RE_RES_IRRQ_OFLOW].name = "res_irrq_oflow",
102 [BNXT_RE_RES_UNSUP_OPCODE].name = "res_unsup_opcode",
103 [BNXT_RE_RES_UNALIGNED_ATOMIC].name = "res_unaligned_atomic",
104 [BNXT_RE_RES_REM_INV_ERR].name = "res_rem_inv_err",
105 [BNXT_RE_RES_MEM_ERROR].name = "res_mem_err",
106 [BNXT_RE_RES_SRQ_ERR].name = "res_srq_err",
107 [BNXT_RE_RES_CMP_ERR].name = "res_cmp_err",
108 [BNXT_RE_RES_INVALID_DUP_RKEY].name = "res_invalid_dup_rkey",
109 [BNXT_RE_RES_WQE_FORMAT_ERR].name = "res_wqe_format_err",
110 [BNXT_RE_RES_CQ_LOAD_ERR].name = "res_cq_load_err",
111 [BNXT_RE_RES_SRQ_LOAD_ERR].name = "res_srq_load_err",
112 [BNXT_RE_RES_TX_PCI_ERR].name = "res_tx_pci_err",
113 [BNXT_RE_RES_RX_PCI_ERR].name = "res_rx_pci_err",
114 [BNXT_RE_OUT_OF_SEQ_ERR].name = "oos_drop_count",
115 [BNXT_RE_TX_ATOMIC_REQ].name = "tx_atomic_req",
116 [BNXT_RE_TX_READ_REQ].name = "tx_read_req",
117 [BNXT_RE_TX_READ_RES].name = "tx_read_resp",
118 [BNXT_RE_TX_WRITE_REQ].name = "tx_write_req",
119 [BNXT_RE_TX_SEND_REQ].name = "tx_send_req",
120 [BNXT_RE_RX_ATOMIC_REQ].name = "rx_atomic_req",
121 [BNXT_RE_RX_READ_REQ].name = "rx_read_req",
122 [BNXT_RE_RX_READ_RESP].name = "rx_read_resp",
123 [BNXT_RE_RX_WRITE_REQ].name = "rx_write_req",
124 [BNXT_RE_RX_SEND_REQ].name = "rx_send_req",
125 [BNXT_RE_RX_ROCE_GOOD_PKTS].name = "rx_roce_good_pkts",
126 [BNXT_RE_RX_ROCE_GOOD_BYTES].name = "rx_roce_good_bytes",
127 [BNXT_RE_OOB].name = "rx_out_of_buffer"
134 stats->value[BNXT_RE_TX_ATOMIC_REQ] = s->tx_atomic_req; in bnxt_re_copy_ext_stats()
135 stats->value[BNXT_RE_TX_READ_REQ] = s->tx_read_req; in bnxt_re_copy_ext_stats()
136 stats->value[BNXT_RE_TX_READ_RES] = s->tx_read_res; in bnxt_re_copy_ext_stats()
137 stats->value[BNXT_RE_TX_WRITE_REQ] = s->tx_write_req; in bnxt_re_copy_ext_stats()
138 stats->value[BNXT_RE_TX_SEND_REQ] = s->tx_send_req; in bnxt_re_copy_ext_stats()
139 stats->value[BNXT_RE_RX_ATOMIC_REQ] = s->rx_atomic_req; in bnxt_re_copy_ext_stats()
140 stats->value[BNXT_RE_RX_READ_REQ] = s->rx_read_req; in bnxt_re_copy_ext_stats()
141 stats->value[BNXT_RE_RX_READ_RESP] = s->rx_read_res; in bnxt_re_copy_ext_stats()
142 stats->value[BNXT_RE_RX_WRITE_REQ] = s->rx_write_req; in bnxt_re_copy_ext_stats()
143 stats->value[BNXT_RE_RX_SEND_REQ] = s->rx_send_req; in bnxt_re_copy_ext_stats()
144 stats->value[BNXT_RE_RX_ROCE_GOOD_PKTS] = s->rx_roce_good_pkts; in bnxt_re_copy_ext_stats()
145 stats->value[BNXT_RE_RX_ROCE_GOOD_BYTES] = s->rx_roce_good_bytes; in bnxt_re_copy_ext_stats()
146 stats->value[BNXT_RE_OOB] = s->rx_out_of_buffer; in bnxt_re_copy_ext_stats()
152 struct bnxt_qplib_ext_stat *estat = &rdev->stats.rstat.ext_stat; in bnxt_re_get_ext_stat()
156 fid = PCI_FUNC(rdev->en_dev->pdev->devfn); in bnxt_re_get_ext_stat()
157 rc = bnxt_qplib_qext_stat(&rdev->rcfw, fid, estat); in bnxt_re_get_ext_stat()
170 stats->value[BNXT_RE_TO_RETRANSMITS] = in bnxt_re_copy_err_stats()
171 err_s->to_retransmits; in bnxt_re_copy_err_stats()
172 stats->value[BNXT_RE_SEQ_ERR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
173 err_s->seq_err_naks_rcvd; in bnxt_re_copy_err_stats()
174 stats->value[BNXT_RE_MAX_RETRY_EXCEEDED] = in bnxt_re_copy_err_stats()
175 err_s->max_retry_exceeded; in bnxt_re_copy_err_stats()
176 stats->value[BNXT_RE_RNR_NAKS_RCVD] = in bnxt_re_copy_err_stats()
177 err_s->rnr_naks_rcvd; in bnxt_re_copy_err_stats()
178 stats->value[BNXT_RE_MISSING_RESP] = in bnxt_re_copy_err_stats()
179 err_s->missing_resp; in bnxt_re_copy_err_stats()
180 stats->value[BNXT_RE_UNRECOVERABLE_ERR] = in bnxt_re_copy_err_stats()
181 err_s->unrecoverable_err; in bnxt_re_copy_err_stats()
182 stats->value[BNXT_RE_BAD_RESP_ERR] = in bnxt_re_copy_err_stats()
183 err_s->bad_resp_err; in bnxt_re_copy_err_stats()
184 stats->value[BNXT_RE_LOCAL_QP_OP_ERR] = in bnxt_re_copy_err_stats()
185 err_s->local_qp_op_err; in bnxt_re_copy_err_stats()
186 stats->value[BNXT_RE_LOCAL_PROTECTION_ERR] = in bnxt_re_copy_err_stats()
187 err_s->local_protection_err; in bnxt_re_copy_err_stats()
188 stats->value[BNXT_RE_MEM_MGMT_OP_ERR] = in bnxt_re_copy_err_stats()
189 err_s->mem_mgmt_op_err; in bnxt_re_copy_err_stats()
190 stats->value[BNXT_RE_REMOTE_INVALID_REQ_ERR] = in bnxt_re_copy_err_stats()
191 err_s->remote_invalid_req_err; in bnxt_re_copy_err_stats()
192 stats->value[BNXT_RE_REMOTE_ACCESS_ERR] = in bnxt_re_copy_err_stats()
193 err_s->remote_access_err; in bnxt_re_copy_err_stats()
194 stats->value[BNXT_RE_REMOTE_OP_ERR] = in bnxt_re_copy_err_stats()
195 err_s->remote_op_err; in bnxt_re_copy_err_stats()
196 stats->value[BNXT_RE_DUP_REQ] = in bnxt_re_copy_err_stats()
197 err_s->dup_req; in bnxt_re_copy_err_stats()
198 stats->value[BNXT_RE_RES_EXCEED_MAX] = in bnxt_re_copy_err_stats()
199 err_s->res_exceed_max; in bnxt_re_copy_err_stats()
200 stats->value[BNXT_RE_RES_LENGTH_MISMATCH] = in bnxt_re_copy_err_stats()
201 err_s->res_length_mismatch; in bnxt_re_copy_err_stats()
202 stats->value[BNXT_RE_RES_EXCEEDS_WQE] = in bnxt_re_copy_err_stats()
203 err_s->res_exceeds_wqe; in bnxt_re_copy_err_stats()
204 stats->value[BNXT_RE_RES_OPCODE_ERR] = in bnxt_re_copy_err_stats()
205 err_s->res_opcode_err; in bnxt_re_copy_err_stats()
206 stats->value[BNXT_RE_RES_RX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
207 err_s->res_rx_invalid_rkey; in bnxt_re_copy_err_stats()
208 stats->value[BNXT_RE_RES_RX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
209 err_s->res_rx_domain_err; in bnxt_re_copy_err_stats()
210 stats->value[BNXT_RE_RES_RX_NO_PERM] = in bnxt_re_copy_err_stats()
211 err_s->res_rx_no_perm; in bnxt_re_copy_err_stats()
212 stats->value[BNXT_RE_RES_RX_RANGE_ERR] = in bnxt_re_copy_err_stats()
213 err_s->res_rx_range_err; in bnxt_re_copy_err_stats()
214 stats->value[BNXT_RE_RES_TX_INVALID_RKEY] = in bnxt_re_copy_err_stats()
215 err_s->res_tx_invalid_rkey; in bnxt_re_copy_err_stats()
216 stats->value[BNXT_RE_RES_TX_DOMAIN_ERR] = in bnxt_re_copy_err_stats()
217 err_s->res_tx_domain_err; in bnxt_re_copy_err_stats()
218 stats->value[BNXT_RE_RES_TX_NO_PERM] = in bnxt_re_copy_err_stats()
219 err_s->res_tx_no_perm; in bnxt_re_copy_err_stats()
220 stats->value[BNXT_RE_RES_TX_RANGE_ERR] = in bnxt_re_copy_err_stats()
221 err_s->res_tx_range_err; in bnxt_re_copy_err_stats()
222 stats->value[BNXT_RE_RES_IRRQ_OFLOW] = in bnxt_re_copy_err_stats()
223 err_s->res_irrq_oflow; in bnxt_re_copy_err_stats()
224 stats->value[BNXT_RE_RES_UNSUP_OPCODE] = in bnxt_re_copy_err_stats()
225 err_s->res_unsup_opcode; in bnxt_re_copy_err_stats()
226 stats->value[BNXT_RE_RES_UNALIGNED_ATOMIC] = in bnxt_re_copy_err_stats()
227 err_s->res_unaligned_atomic; in bnxt_re_copy_err_stats()
228 stats->value[BNXT_RE_RES_REM_INV_ERR] = in bnxt_re_copy_err_stats()
229 err_s->res_rem_inv_err; in bnxt_re_copy_err_stats()
230 stats->value[BNXT_RE_RES_MEM_ERROR] = in bnxt_re_copy_err_stats()
231 err_s->res_mem_error; in bnxt_re_copy_err_stats()
232 stats->value[BNXT_RE_RES_SRQ_ERR] = in bnxt_re_copy_err_stats()
233 err_s->res_srq_err; in bnxt_re_copy_err_stats()
234 stats->value[BNXT_RE_RES_CMP_ERR] = in bnxt_re_copy_err_stats()
235 err_s->res_cmp_err; in bnxt_re_copy_err_stats()
236 stats->value[BNXT_RE_RES_INVALID_DUP_RKEY] = in bnxt_re_copy_err_stats()
237 err_s->res_invalid_dup_rkey; in bnxt_re_copy_err_stats()
238 stats->value[BNXT_RE_RES_WQE_FORMAT_ERR] = in bnxt_re_copy_err_stats()
239 err_s->res_wqe_format_err; in bnxt_re_copy_err_stats()
240 stats->value[BNXT_RE_RES_CQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
241 err_s->res_cq_load_err; in bnxt_re_copy_err_stats()
242 stats->value[BNXT_RE_RES_SRQ_LOAD_ERR] = in bnxt_re_copy_err_stats()
243 err_s->res_srq_load_err; in bnxt_re_copy_err_stats()
244 stats->value[BNXT_RE_RES_TX_PCI_ERR] = in bnxt_re_copy_err_stats()
245 err_s->res_tx_pci_err; in bnxt_re_copy_err_stats()
246 stats->value[BNXT_RE_RES_RX_PCI_ERR] = in bnxt_re_copy_err_stats()
247 err_s->res_rx_pci_err; in bnxt_re_copy_err_stats()
248 stats->value[BNXT_RE_OUT_OF_SEQ_ERR] = in bnxt_re_copy_err_stats()
249 err_s->res_oos_drop_count; in bnxt_re_copy_err_stats()
261 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
263 return -EINVAL; in bnxt_re_ib_get_hw_stats()
265 stats->value[BNXT_RE_ACTIVE_QP] = atomic_read(&rdev->qp_count); in bnxt_re_ib_get_hw_stats()
266 stats->value[BNXT_RE_ACTIVE_SRQ] = atomic_read(&rdev->srq_count); in bnxt_re_ib_get_hw_stats()
267 stats->value[BNXT_RE_ACTIVE_CQ] = atomic_read(&rdev->cq_count); in bnxt_re_ib_get_hw_stats()
268 stats->value[BNXT_RE_ACTIVE_MR] = atomic_read(&rdev->mr_count); in bnxt_re_ib_get_hw_stats()
269 stats->value[BNXT_RE_ACTIVE_MW] = atomic_read(&rdev->mw_count); in bnxt_re_ib_get_hw_stats()
270 stats->value[BNXT_RE_ACTIVE_PD] = atomic_read(&rdev->pd_count); in bnxt_re_ib_get_hw_stats()
271 stats->value[BNXT_RE_ACTIVE_AH] = atomic_read(&rdev->ah_count); in bnxt_re_ib_get_hw_stats()
274 stats->value[BNXT_RE_RECOVERABLE_ERRORS] = in bnxt_re_ib_get_hw_stats()
275 le64_to_cpu(hw_stats->tx_bcast_pkts); in bnxt_re_ib_get_hw_stats()
276 stats->value[BNXT_RE_RX_ERRORS] = in bnxt_re_ib_get_hw_stats()
277 le64_to_cpu(hw_stats->rx_error_pkts); in bnxt_re_ib_get_hw_stats()
278 stats->value[BNXT_RE_RX_DISCARDS] = in bnxt_re_ib_get_hw_stats()
279 le64_to_cpu(hw_stats->rx_discard_pkts); in bnxt_re_ib_get_hw_stats()
280 stats->value[BNXT_RE_RX_PKTS] = in bnxt_re_ib_get_hw_stats()
281 le64_to_cpu(hw_stats->rx_ucast_pkts); in bnxt_re_ib_get_hw_stats()
282 stats->value[BNXT_RE_RX_BYTES] = in bnxt_re_ib_get_hw_stats()
283 le64_to_cpu(hw_stats->rx_ucast_bytes); in bnxt_re_ib_get_hw_stats()
284 stats->value[BNXT_RE_TX_PKTS] = in bnxt_re_ib_get_hw_stats()
285 le64_to_cpu(hw_stats->tx_ucast_pkts); in bnxt_re_ib_get_hw_stats()
286 stats->value[BNXT_RE_TX_BYTES] = in bnxt_re_ib_get_hw_stats()
287 le64_to_cpu(hw_stats->tx_ucast_bytes); in bnxt_re_ib_get_hw_stats()
289 err_s = &rdev->stats.rstat.errs; in bnxt_re_ib_get_hw_stats()
290 if (test_bit(BNXT_RE_FLAG_ISSUE_ROCE_STATS, &rdev->flags)) { in bnxt_re_ib_get_hw_stats()
291 rc = bnxt_qplib_get_roce_stats(&rdev->rcfw, err_s); in bnxt_re_ib_get_hw_stats()
294 &rdev->flags); in bnxt_re_ib_get_hw_stats()
297 if (_is_ext_stats_supported(rdev->dev_attr.dev_cap_flags) && in bnxt_re_ib_get_hw_stats()
298 !rdev->is_virtfn) { in bnxt_re_ib_get_hw_stats()
302 &rdev->flags); in bnxt_re_ib_get_hw_stats()
310 return bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ? in bnxt_re_ib_get_hw_stats()
320 if (bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx)) in bnxt_re_ib_alloc_hw_port_stats()