net/mlx5: Use flow counter pointer as input to the query function