]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit862e4da21487e3bff3c117d1769a8dd747cedeea
tree21fbd70b2f0d8b37219d720b33160d41069c8fe1
parentfe86182aba2c3b653d7eb72bd641c0f5d58de377
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: a80765cc8d4f ("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