examples/l3fwd-power: fix Rx interrupt disabling
authorXiao Zhang <xiao.zhang@intel.com>
Tue, 10 Sep 2019 16:10:14 +0000 (00:10 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 27 Oct 2019 17:34:34 +0000 (18:34 +0100)
commit0412cfeff907bb9102a2ca834e95ef8c6767f538
tree145fcc2f72900b195dbf43c0e3f2fae5a43c88e3
parent39d21077e5258cbbb17eed07111f16a799ea2fa8
examples/l3fwd-power: fix Rx interrupt disabling

Interrupt will not be received when disabling RX interrupt without
synchronization mechanism sometimes which leads to wake up issue.
Add spinlock to fix it.

Fixes: b736d64787 ("examples/l3fwd-power: disable Rx interrupt when waking up")
Cc: stable@dpdk.org
Signed-off-by: Xiao Zhang <xiao.zhang@intel.com>
Reviewed-by: Marvin Liu <yong.liu@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
examples/l3fwd-power/main.c