i40iw: Add missing memory barriers
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 3 Oct 2017 16:11:49 +0000 (11:11 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 4 Oct 2017 19:28:49 +0000 (15:28 -0400)
commit43bfc24ec1d69853d706cb3ebfdb9088846b9b50
tree2c517f9fd1e17c9304c2b82069b2051420c7390c
parent1736b4c99d1c53abec042d41b702aeabeb65d86a
i40iw: Add missing memory barriers

Remove duplicate set_64bit_val call to offset 24.
Replace some instances of set_64bit_val with
i40iw_insert_wqe_hdr as valid bit needs a write
barrier and should be the last write operation for the WQE.

Fixes: 786c6adb3a94 ("i40iw: add puda code")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_ctrl.c
drivers/infiniband/hw/i40iw/i40iw_p.h
drivers/infiniband/hw/i40iw/i40iw_puda.c