IB/mlx4: Fix zeroing of rnr_retry value in ib_modify_qp()
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 6 Jun 2007 16:35:04 +0000 (19:35 +0300)
committerRoland Dreier <rolandd@cisco.com>
Fri, 8 Jun 2007 06:24:38 +0000 (23:24 -0700)
commit57f01b53398baebd809e7efd49fc10c10174b46d
treedc3ab265d42b52f43679cead18d5e35e8a9eba3b
parentb2d9308ae43a9cfa56cc9682dc6ed63347a8d2bf
IB/mlx4: Fix zeroing of rnr_retry value in ib_modify_qp()

The code in __mlx4_ib_modify_qp() overwrites context->params1 after
the RNR retry parameter is ORed in, which results in the RNR retry
parameter always being set to 0.  Fix this by moving where we OR in
the value to later in the function, after the initial assignment of
context->params1.

Found by the Mellanox firmware group.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c