Re: [dpdk-dev] [PATCH v7 06/16] test/distributor: synchronize lcores statistics

2020-10-16 Thread Lukasz Wojciechowski
t; Sent: Saturday, October 10, 2020 11:05 AM >> To: David Hunt ; Bruce Richardson >> >> Cc: dev@dpdk.org; l.wojciec...@partner.samsung.com; sta...@dpdk.org >> Subject: [dpdk-dev] [PATCH v7 06/16] test/distributor: synchronize lcores >> statistics >> >> Statistic

Re: [dpdk-dev] [PATCH v7 06/16] test/distributor: synchronize lcores statistics

2020-10-15 Thread Honnappa Nagarahalli
Lukasz Wojciechowski > Sent: Saturday, October 10, 2020 11:05 AM > To: David Hunt ; Bruce Richardson > > Cc: dev@dpdk.org; l.wojciec...@partner.samsung.com; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v7 06/16] test/distributor: synchronize lcores > statistics > > Statistics of h

[dpdk-dev] [PATCH v7 06/16] test/distributor: synchronize lcores statistics

2020-10-10 Thread Lukasz Wojciechowski
Statistics of handled packets are cleared and read on main lcore, while they are increased in workers handlers on different lcores. Without synchronization occasionally showed invalid values. This patch uses atomic acquire/release mechanisms to synchronize. Fixes: c3eabff124e6 ("distributor: add