]> git.droids-corp.org - dpdk.git/blobdiff - drivers/mempool/octeontx/octeontx_mbox.c
net/mlx4: spawn rdma-core dependency plug-in
[dpdk.git] / drivers / mempool / octeontx / octeontx_mbox.c
index 640a58d3da98b6bade64f07d8523b7619f2a7e29..f8cb6a453760fe8ee16f96051d981a119726a4cc 100644 (file)
@@ -61,7 +61,7 @@ struct mbox_ram_hdr {
 };
 
 static inline void
-mbox_msgcpy(uint8_t *d, const uint8_t *s, uint16_t size)
+mbox_msgcpy(volatile uint8_t *d, volatile const uint8_t *s, uint16_t size)
 {
        uint16_t i;
 
@@ -100,7 +100,7 @@ mbox_send_request(struct mbox *m, struct octeontx_mbox_hdr *hdr,
 
        /* Write the msg header */
        rte_write64(new_hdr.u64, ram_mbox_hdr);
-       rte_io_wmb();
+       rte_smp_wmb();
        /* Notify PF about the new msg - write to MBOX reg generates PF IRQ */
        rte_write64(0, m->reg);
 }