event/opdl: fix atomic queue race condition
authorLiang Ma <liang.j.ma@intel.com>
Tue, 27 Mar 2018 14:18:12 +0000 (15:18 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 16 Apr 2018 08:10:03 +0000 (10:10 +0200)
commitb770f952de678b4964d05ce49b0518919f152b83
tree2e386c62cabf6f57486526771d36ae785ff8a009
parent4deeb214ac0b33c61ebc1722ef31510f8e9492e6
event/opdl: fix atomic queue race condition

If application link one atomic queue to multiple ports,
and each worker core update flow_id, there will have a
chance to hit race condition issue and lead to double processing
same event. This fix solve the problem and eliminate
the race condition issue.

Fixes: 4236ce9bf5bf ("event/opdl: add OPDL ring infrastructure library")
Cc: stable@dpdk.org
Signed-off-by: Liang Ma <liang.j.ma@intel.com>
Signed-off-by: Peter Mccarthy <peter.mccarthy@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
drivers/event/opdl/opdl_evdev_init.c
drivers/event/opdl/opdl_ring.c
drivers/event/opdl/opdl_ring.h