From: Jerin Jacob Date: Fri, 9 Jun 2017 13:16:03 +0000 (+0530) Subject: event/octeontx: fix missing enqueue SMP barrier X-Git-Tag: spdx-start~2966 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6ac67eb3b6b66a73853d6b934f6b3e7b4839e225;p=dpdk.git event/octeontx: fix missing enqueue SMP barrier Typically RTE_EVENT_OP_NEW issued by the producer lcore. To reflect the write changes issued by the producer lcore on worker lcore, an SMP write barrier is required on producer enqueue. Fixing the missing rte_smp_wmb() on enqueue with RTE_EVENT_OP_NEW. Fixes: f10d322eff76 ("event/octeontx: support worker enqueue") Cc: stable@dpdk.org Signed-off-by: Jerin Jacob Acked-by: Gage Eads --- diff --git a/drivers/event/octeontx/ssovf_worker.c b/drivers/event/octeontx/ssovf_worker.c index 4839f06314..1ead476c93 100644 --- a/drivers/event/octeontx/ssovf_worker.c +++ b/drivers/event/octeontx/ssovf_worker.c @@ -179,6 +179,7 @@ ssows_enq(void *port, const struct rte_event *ev) switch (ev->op) { case RTE_EVENT_OP_NEW: + rte_smp_wmb(); ssows_new_event(ws, ev); break; case RTE_EVENT_OP_FORWARD: