]> 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)
commit1512fb649f4c35adf547581dd01095adcc7fe4fe
tree21fbd70b2f0d8b37219d720b33160d41069c8fe1
parent3d20916cc41241c8c7c115f4592f28e382d77a64
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: f6e8274b2c17 ("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