net/mlx5: relocate flow counters query function
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Tue, 23 Oct 2018 10:04:13 +0000 (10:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commit06629d860d54ec3015ad2bcd66759d3b5dbc7e3d
tree02ffa4a697dbc611f6b327a376d9d07eb9819ab3
parent2dd8b72167cb1b3b58f42fb93291c063eb0833a5
net/mlx5: relocate flow counters query function

The flow_verbs_query_count() is moved into the the group of counter
managing functions and renamed to flow_verbs_counter_query() in order
to be in unified fashion with others.

Also minor function modification is made to avoid unreachable code
warnings if there is no counter support at compile time.

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow_verbs.c