summaryrefslogtreecommitdiff
path: root/drivers/mempool
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>2018-01-08 10:10:43 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-01-12 18:24:47 +0100
commitb6f26c9db26482d0e8c004b138aa72bdf5f6c975 (patch)
treef90bc45cb0fbe2e4cdad6ce6e2248edfa0f50522 /drivers/mempool
parent704e657beaa64239a92f792f2514fb6fa5e2013c (diff)
downloaddpdk-b6f26c9db26482d0e8c004b138aa72bdf5f6c975.zip
dpdk-b6f26c9db26482d0e8c004b138aa72bdf5f6c975.tar.gz
dpdk-b6f26c9db26482d0e8c004b138aa72bdf5f6c975.tar.xz
mempool/octeontx: fix improper memory barrier
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>
Diffstat (limited to 'drivers/mempool')
-rw-r--r--drivers/mempool/octeontx/octeontx_mbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mempool/octeontx/octeontx_mbox.c b/drivers/mempool/octeontx/octeontx_mbox.c
index 640a58d..28d8c8b 100644
--- a/drivers/mempool/octeontx/octeontx_mbox.c
+++ b/drivers/mempool/octeontx/octeontx_mbox.c
@@ -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);
}