net/mlx5: fix query host adapter attributes
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Tue, 12 Nov 2019 08:53:58 +0000 (08:53 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:05 +0000 (17:36 +0100)
commitdcd1b653e9e5f423e99d0cccf6469c2532c63111
tree65778f515fed43f0780e8018d9d7e6b1a319b57e
parentb795e127e8623acec07c5e9b33402880ea19ce9b
net/mlx5: fix query host adapter attributes

Host adapter attributes are queried from kernel via multiple
DevX calls. The retrieved data were erroneously overwritten,
the order of querying is fixed.

Fixes: 6bc327b94fe8 ("net/mlx5: fill meter capabilities using DevX")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_devx_cmds.c