IB/mlx5: Add HW counter called rx_dct_connect
authorShetu Ayalew <shetu@nvidia.com>
Sun, 23 Jul 2023 14:21:14 +0000 (17:21 +0300)
committerLeon Romanovsky <leon@kernel.org>
Mon, 31 Jul 2023 08:40:32 +0000 (11:40 +0300)
The rx_dct_connect counter shows the number of received connection
requests for the associated DCTs.

Signed-off-by: Shetu Ayalew <shetu@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Link: https://lore.kernel.org/r/01cd24cd7f591734741309921fdc01fc770d84a8.1690121941.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/mlx5/counters.c

index 93257fa5aae8eb6f59b5cf58cda945246933c681..8300ce6228350dde6d4efc6d79d122d843a8cef4 100644 (file)
@@ -27,6 +27,7 @@ static const struct mlx5_ib_counter basic_q_cnts[] = {
        INIT_Q_COUNTER(rx_write_requests),
        INIT_Q_COUNTER(rx_read_requests),
        INIT_Q_COUNTER(rx_atomic_requests),
+       INIT_Q_COUNTER(rx_dct_connect),
        INIT_Q_COUNTER(out_of_buffer),
 };
 
@@ -46,6 +47,7 @@ static const struct mlx5_ib_counter vport_basic_q_cnts[] = {
        INIT_VPORT_Q_COUNTER(rx_write_requests),
        INIT_VPORT_Q_COUNTER(rx_read_requests),
        INIT_VPORT_Q_COUNTER(rx_atomic_requests),
+       INIT_VPORT_Q_COUNTER(rx_dct_connect),
        INIT_VPORT_Q_COUNTER(out_of_buffer),
 };