[dpdk-dev] [PATCH] examples/performance-thread: fix segfault with in gcc 5.x

2016-04-27 Thread Thomas Monjalon
2016-04-26 17:47, Tomasz Kulasek: > It seems that with gcc >5.x and -O2/-O3 optimization breaks packet grouping > algorithm in l3fwd-thread application causing segfault. > > When last packet pointer "lp" and "pnum->u64" buffer points the same > memory buffer, high optimization can cause unpredicta

[dpdk-dev] [PATCH] examples/performance-thread: fix segfault with in gcc 5.x

2016-04-26 Thread Tomasz Kulasek
It seems that with gcc >5.x and -O2/-O3 optimization breaks packet grouping algorithm in l3fwd-thread application causing segfault. When last packet pointer "lp" and "pnum->u64" buffer points the same memory buffer, high optimization can cause unpredictable results. It seems that assignment of pre