]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Support RoCE ICRC encapsulated error counter
authorTalat Batheesh <talatb@mellanox.com>
Thu, 21 Jun 2018 12:37:56 +0000 (15:37 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 22 Jun 2018 14:51:14 +0000 (08:51 -0600)
commit64a71061e243ba8050fa3197d96e2ea80f105993
treef5f6d0f597d2d3025ab6d51487d7bc5041a6b8c1
parent81aa77756239616de25342aa76d73088cbd7826b
IB/mlx5: Support RoCE ICRC encapsulated error counter

This patch adds support to query the counter that counts the
RoCE packets with corrupted ICRC (Invariant Cyclic Redundancy Code).

This counter will be under
/sys/class/infiniband/<mlx5-dev>/ports/<port>/hw_counters/

rx_icrc_encapsulated - The number of RoCE packets with ICRC
error.

Signed-off-by: Talat Batheesh <talatb@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/cmd.c
drivers/infiniband/hw/mlx5/cmd.h
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h