net/mlx5: Always Query HCA caps after setting them
authorDaniel Jurgens <danielj@mellanox.com>
Tue, 25 Oct 2016 15:36:25 +0000 (18:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 16:00:39 +0000 (12:00 -0400)
commitbba1574c2f11d674bf343f3cf307b33d19f73d9d
tree21fbd70b2f0d8b37219d720b33160d41069c8fe1
parentb47bd6ea40636362a8b6605de51207cc387ba0b8
net/mlx5: Always Query HCA caps after setting them

Always query the HCA caps after setting them to update the capablities
data structures. Not doing so results in incorrect capabilities being
reported including max_dc, max_qp and several others.

Fixes: 59211bd3b632 ("net/mlx5: Split the load/unload flow into hardware
and software flows")
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/main.c