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: 786c6adb3a
("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>
这个提交包含在:
@@ -48,7 +48,7 @@
|
||||
* @wqe: cqp wqe for header
|
||||
* @header: header for the cqp wqe
|
||||
*/
|
||||
static inline void i40iw_insert_wqe_hdr(u64 *wqe, u64 header)
|
||||
void i40iw_insert_wqe_hdr(u64 *wqe, u64 header)
|
||||
{
|
||||
wmb(); /* make sure WQE is populated before polarity is set */
|
||||
set_64bit_val(wqe, 24, header);
|
||||
|
在新工单中引用
屏蔽一个用户