net/mlx5: fix count query when flow has not counter
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>
Wed, 25 Jul 2018 08:46:14 +0000 (10:46 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 12:05:52 +0000 (14:05 +0200)
commit919d53ad78d20a47054641eaa1ba7491e644e5c9
tree5684b37f8eba41adb8e24d4d9b37495a76fa6038
parent24f653a7e8bff5f500894a07771dd6718966e9be
net/mlx5: fix count query when flow has not counter

Querying a counters on a flow without counter is ending with a
segmentation fault.

Fixes: 60bd8c9747e8 ("net/mlx5: add count flow action")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Ori Kam <orika@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow.c