net/mlx5: fill meter capabilities using DevX
authorSuanming Mou <suanmingm@mellanox.com>
Fri, 8 Nov 2019 03:49:08 +0000 (05:49 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 Nov 2019 13:23:02 +0000 (14:23 +0100)
commit6bc327b94fe8aaf06e7eef918d4c8c32bcaa9252
tree76389eeb10dbab6f184a6012aee76126641f9853
parentd740eb5018bb5617abb8a2757000acb4cedc891f
net/mlx5: fill meter capabilities using DevX

This commit add the support of fill and get the meter capabilities
from DevX.

Support items:
1. The srTCM color bind mode.
2. Meter share with multiple flows.
3. Action drop.

The color aware mode and multiple meter chaining in a flow are not
supported.

New internal function in rte_mtr_ops callback:
1. capabilities_get()

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_devx_cmds.c
drivers/net/mlx5/mlx5_flow_meter.c