net/mlx5: Check device capability for maximum flow counters
authorRaed Salem <raeds@mellanox.com>
Sun, 30 Jul 2017 08:02:51 +0000 (11:02 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 Sep 2017 04:23:09 +0000 (07:23 +0300)
commit16f1c5bb3ed75b3cf3ced537db40f7e1a244debe
treea61474d598ef7cdc97934816a0ad82cd34b10fae
parent99d3cd27f755d63fd6cf85169eaa873d90769aa5
net/mlx5: Check device capability for maximum flow counters

Added check for the maximal number of flow counters attached
to rule (FTE).

Fixes: bd5251dbf156b ('net/mlx5_core: Introduce flow steering destination of type counter')
Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
include/linux/mlx5/mlx5_ifc.h