OSDN Git Service

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)
commit9f876f3de6616f02960d7d88ad52c805946f4b63
treef5f6d0f597d2d3025ab6d51487d7bc5041a6b8c1
parent0af5107cd0640ee3424e337b492e4b11b450ce28
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