IB/qib: Fix comparison error with qperf compare/swap test
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 14 Nov 2017 12:34:52 +0000 (04:34 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:42:14 +0000 (15:42 +0100)
commit5a4255467cd8ce9e2c5f9a25b50f2fe692cf1bb8
tree3a2957ab65f2a0c86d7da78b6b0812b001281eb8
parent7a748f0bb2e4aca2c18223585523eb07199a4715
IB/qib: Fix comparison error with qperf compare/swap test

commit 87b3524cb5058fdc7c2afdb92bdb2e079661ddc4 upstream.

This failure exists with qib:

ver_rc_compare_swap:
mismatch, sequence 2, expected 123456789abcdef, got 0

The request builder was using the incorrect inlines to
build the request header resulting in incorrect data
in the atomic header.

Fix by using the appropriate inlines to create the request.

Fixes: 261a4351844b ("IB/qib,IB/hfi: Use core common header file")
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/qib/qib_rc.c