net/mlx5: validate meter profile
authorSuanming Mou <suanmingm@mellanox.com>
Fri, 8 Nov 2019 03:49:11 +0000 (05:49 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 Nov 2019 13:23:02 +0000 (14:23 +0100)
commite0583a52b2e0e6bb34ed464a9ba344dfc05f9485
tree42c78b6636cd72feb0ed14340394821b3669a8bd
parent3bd26b23cefc78c71d8cd7234224ffe14bbb7e45
net/mlx5: validate meter profile

The add meter profile should be validated if it is valid or has been add
to the list. Invalid and exist profile should not be add to the list.

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