net/mlx5: support flow counters using devx
authorMoti Haimovsky <motih@mellanox.com>
Thu, 3 Jan 2019 15:06:37 +0000 (15:06 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commitf5bf91de738a3eeebb262c5cccc2eb6e7f4245a5
tree96560afe3d43b66c8e8fd96884c045c6fbe9c6e5
parent6de1ffaa41128ba81ee7f4c062e8d6932b9ac4f5
net/mlx5: support flow counters using devx

This commit adds counters support when creating flows via direct
verbs. The implementation uses devx interface in order to create
query and delete the counters.
This support requires MLNX_OFED_LINUX-4.5-0.1.0.1 installation.

Signed-off-by: Moti Haimovsky <motih@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/Makefile
drivers/net/mlx5/meson.build
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_devx_cmds.c [new file with mode: 0644]
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_prm.h