aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mlx5/mlx5_core
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-05-08 10:58:41 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-05-08 10:58:41 +0000
commitc71a71bafc3a2792c1c18a3bb4a2a85bc89c0d46 (patch)
treeba5fea2c220cb64b5f29a4a85ef8fcd4f8b11805 /sys/dev/mlx5/mlx5_core
parentadb6fd50c8ebe502fa53e4a6eb413b9f3e8acaf8 (diff)
Notes
Diffstat (limited to 'sys/dev/mlx5/mlx5_core')
-rw-r--r--sys/dev/mlx5/mlx5_core/mlx5_diagnostics.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/mlx5/mlx5_core/mlx5_diagnostics.c b/sys/dev/mlx5/mlx5_core/mlx5_diagnostics.c
index a3a2f1754e6b..592be19d9417 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_diagnostics.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_diagnostics.c
@@ -231,13 +231,13 @@ int mlx5_core_get_diagnostics_full(struct mlx5_core_dev *dev,
MLX5_REG_MPCNT, 0, 0);
if (err == 0) {
void *pcounters = MLX5_ADDR_OF(mpcnt_reg, out,
- counter_set.pcie_performance_counters_data_layout);
+ counter_set.pcie_perf_counters);
pdiag->counter.rx_pci_errors =
- MLX5_GET(pcie_performance_counters_data_layout,
+ MLX5_GET(pcie_perf_counters,
pcounters, rx_errors);
pdiag->counter.tx_pci_errors =
- MLX5_GET(pcie_performance_counters_data_layout,
+ MLX5_GET(pcie_perf_counters,
pcounters, tx_errors);
}
MLX5_SET(mpcnt_reg, in, grp,
@@ -247,13 +247,13 @@ int mlx5_core_get_diagnostics_full(struct mlx5_core_dev *dev,
MLX5_REG_MPCNT, 0, 0);
if (err == 0) {
void *pcounters = MLX5_ADDR_OF(mpcnt_reg, out,
- counter_set.pcie_timers_and_states_data_layout);
+ counter_set.pcie_timers_states);
pdiag->counter.tx_pci_non_fatal_errors =
- MLX5_GET(pcie_timers_and_states_data_layout,
+ MLX5_GET(pcie_timers_states,
pcounters, non_fatal_err_msg_sent);
pdiag->counter.tx_pci_fatal_errors =
- MLX5_GET(pcie_timers_and_states_data_layout,
+ MLX5_GET(pcie_timers_states,
pcounters, fatal_err_msg_sent);
}
kvfree(in);