]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Save the qpn from the input modifier in RST2INIT wrapper
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 24 Jul 2018 11:27:55 +0000 (14:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2018 23:30:48 +0000 (16:30 -0700)
commit67a8225a6d60e23ae95e5ae17f59b1054a9773e7
tree1ca172ea681987091428a3a140c1746814096b94
parent88c6c0f63589db6a46848b676aaf994fa420eded
net/mlx4_core: Save the qpn from the input modifier in RST2INIT wrapper

Function mlx4_RST2INIT_QP_wrapper saved the qp number passed in the qp
context, rather than the one passed in the input modifier.

However, the qp number in the qp context is not defined as a
required parameter by the FW. Therefore, drivers may choose to not
specify the qp number in the qp context for the reset-to-init transition.

Thus, we must save the qp number passed in the command input modifier --
which is always present. (This saved qp number is used as the input
modifier for command 2RST_QP when a slave's qp's are destroyed).

Fixes: ca1a4914cfef ("mlx4_core: resource tracking for HCA resources used by guests")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c