mbox series

[v2,0/2] fix distributor unit test

Message ID 20191012024352.23545-1-ruifeng.wang@arm.com (mailing list archive)
Headers
Series fix distributor unit test |

Message

Ruifeng Wang Oct. 12, 2019, 2:43 a.m. UTC
  Bug 342 reported distributor_autotest execution suspension
on aarch64 platform.
Issue was due to lack of synchronization among threads. Distributor
thread and worker thread may get deadlocked.
Fixed synchronization issue by adding barriers.

Another issue identified was in test case. Non-atomic operation on
stat value could cause value reset not been observed by worker thread
and mess counters. The issue was fixed by using atomic operations.

---
v2:
Fixed intermittent packet count incorrect failure. (Aaron, David)
Additional patch to fix non-atomic operation in unit test.


Ruifeng Wang (2):
  lib/distributor: fix deadlock issue for aarch64
  test/distributor: fix false unit test failure

 app/test/test_distributor.c                  |  6 ++-
 lib/librte_distributor/meson.build           |  5 ++
 lib/librte_distributor/rte_distributor.c     | 39 ++++++++++------
 lib/librte_distributor/rte_distributor_v20.c | 49 +++++++++++++-------
 4 files changed, 67 insertions(+), 32 deletions(-)