example:generator : Fix data race condition
example:generator : Fix data race condition

The counters.seq counter is used to check if the configured number of
packets was processed. There is a race condition between the counter
incrementation time and its value testing time. If code is running on
multiple CPUs it is possible the application send more packets than
expected (with number of CPUs - 1). A separate counter must be used
for the processed packets.

Signed-off-by: Grigore Ion <8ee9d4b314276fac42961f68b856935d621ac12b@freescale.com>
Signed-off-by: Maxim Uvarov <db4d16e02ae2d7493db430203537da8b2e34f290@linaro.org>

kalray/odp-mppa,dkrot/odp,kalray/odp-mppa,ravineet-singh/odp,rsalveti/odp,erachmi/odp,mike-holmes-linaro/odp,nmorey/odp,ravineet-singh/odp,erachmi/odp,mike-holmes-linaro/odp,erachmi/odp,dkrot/odp,dkrot/odp,rsalveti/odp,mike-holmes-linaro/odp,kalray/odp-mppa,mike-holmes-linaro/odp,ravineet-singh/odp,kalray/odp-mppa,ravineet-singh/odp,nmorey/odp,rsalveti/odp,erachmi/odp,nmorey/odp,rsalveti/odp,kalray/odp-mppa,rsalveti/odp,kalray/odp-mppa,dkrot/odp,nmorey/odp,kalray/odp-mppa