examples/packet_ordering: move creation of reorder buffer
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Fri, 20 Feb 2015 12:10:53 +0000 (12:10 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 02:04:10 +0000 (03:04 +0100)
commit6ebc23d80b459ecef8df3a135495ba0757db2133
tree9a79686ad127bb0a5d7827e7ecf0864f772648a8
parente1545b393a7e53b3dda09eefe2d7ecda4b4d49cf
examples/packet_ordering: move creation of reorder buffer

There was no error checking after calling rte_reorder_create.
Move the creation of the reorder buffer before launching threads
in case of memory error.

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
examples/packet_ordering/main.c