mempool/octeontx: fix improper memory barrier
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Mon, 8 Jan 2018 04:40:43 +0000 (10:10 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 12 Jan 2018 17:24:47 +0000 (18:24 +0100)
Use smp barrier instead of IO barrier when sending mbox request as the
write has to be reflected between cores not IO devices.

Fixes: 6da9d24574db ("event/octeontx: add mailbox support")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
drivers/mempool/octeontx/octeontx_mbox.c

index 640a58d..28d8c8b 100644 (file)
@@ -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);
 }