examples/distributor: fix Rx thread logic for zero packet
authorReshma Pattan <reshma.pattan@intel.com>
Thu, 14 Jul 2016 15:48:45 +0000 (16:48 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 15 Jul 2016 21:42:48 +0000 (23:42 +0200)
commit2b41fac55911d92084988f15bdfc312d44b87599
treeec58a063e45f084283cbdb79b586a1e80ee088d3
parent0e3d2a9efa4dcfd775140f724abe113a04df68e4
examples/distributor: fix Rx thread logic for zero packet

Zero packets can be returned by rte_eth_rx_burst() and
rte_distributor_returned_pkts() inside lcore_rx(), so
for zero packet scenario instead of proceeding to
next operations we should continue to the next iteration of the
loop to avoid unnecessary processing overhead which is causing
rx packets to be dropped and hence distributor failing to forward the
packets.

Fixes: 07db4a97 ("examples/distributor: new sample app")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/distributor/main.c