summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/i40iw/i40iw_p.h
diff options
context:
space:
mode:
authorMustafa Ismail <mustafa.ismail@intel.com>2017-10-03 11:11:49 -0500
committerDoug Ledford <dledford@redhat.com>2017-10-04 15:28:49 -0400
commit43bfc24ec1d69853d706cb3ebfdb9088846b9b50 (patch)
tree2c517f9fd1e17c9304c2b82069b2051420c7390c /drivers/infiniband/hw/i40iw/i40iw_p.h
parent1736b4c99d1c53abec042d41b702aeabeb65d86a (diff)
downloadop-kernel-dev-43bfc24ec1d69853d706cb3ebfdb9088846b9b50.zip
op-kernel-dev-43bfc24ec1d69853d706cb3ebfdb9088846b9b50.tar.gz
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>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_p.h')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_p.h b/drivers/infiniband/hw/i40iw/i40iw_p.h
index e217a12..5498ad0 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_p.h
+++ b/drivers/infiniband/hw/i40iw/i40iw_p.h
@@ -59,6 +59,8 @@ enum i40iw_status_code i40iw_sc_mr_fast_register(struct i40iw_sc_qp *qp,
struct i40iw_fast_reg_stag_info *info,
bool post_sq);
+void i40iw_insert_wqe_hdr(u64 *wqe, u64 header);
+
/* HMC/FPM functions */
enum i40iw_status_code i40iw_sc_init_iw_hmc(struct i40iw_sc_dev *dev,
u8 hmc_fn_id);
OpenPOWER on IntegriCloud