[ofa-general] wmb missing in libmthca?

Michael S. Tsirkin mst at dev.mellanox.co.il
Thu May 24 04:47:11 PDT 2007


Roland, I see this in kernel:

                ((struct mthca_next_seg *) prev_wqe)->nda_op =
                        cpu_to_be32((ind << qp->rq.wqe_shift) | 1);
                wmb();
                ((struct mthca_next_seg *) prev_wqe)->ee_nds =
                        cpu_to_be32(MTHCA_NEXT_DBD | size);

but userspace does not have wmb here.
Is it needed?

-- 
MST



More information about the general mailing list