IB/mlx5: Expose RoCE accelerator counters
authorAvihai Horon <avihaih@mellanox.com>
Wed, 15 Jan 2020 14:54:59 +0000 (16:54 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 16 Jan 2020 20:11:52 +0000 (16:11 -0400)
commitd7fab916374c8f5488ca792c57ea8b72e8631213
tree1de4ffa614675b9af25301c0d4585dd15093b066
parentd6de0bb1850f6fcefd4f9fed2de69c0915a2c8a9
IB/mlx5: Expose RoCE accelerator counters

Introduce the following RoCE accelerator counters:
* roce_adp_retrans - number of adaptive retransmission for RoCE traffic.
* roce_adp_retrans_to - number of times RoCE traffic reached time out
  due to adaptive retransmission.
* roce_slow_restart - number of times RoCE slow restart was used.
* roce_slow_restart_cnps - number of times RoCE slow restart
  generate CNP packets.
* roce_slow_restart_trans - number of times RoCE slow restart change
  state to slow restart.

Link: https://lore.kernel.org/r/20200115145459.83280-3-leon@kernel.org
Signed-off-by: Avihai Horon <avihaih@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c