IB/mlx5: Add flow counters binding support
authorRaed Salem <raeds@mellanox.com>
Thu, 31 May 2018 13:43:39 +0000 (16:43 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sat, 2 Jun 2018 04:35:32 +0000 (07:35 +0300)
commit3b3233fbf02ee4c5de4d635ca6c4f2566d9716df
treec3ddeb7941981e4f1029110cdee3ff63946e0f45
parentb29e2a1309e38cd1afa598a54f3ccb4e4d2ee01c
IB/mlx5: Add flow counters binding support

Associates a counters with a flow when IB_FLOW_SPEC_ACTION_COUNT is part
of the flow specifications.

The counters user space placements of location and description (index,
description) pairs are passed as private data of the counters flow
specification.

Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Raed Salem <raeds@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
include/linux/mlx5/fs.h
include/uapi/rdma/mlx5-abi.h