examples/packet_ordering: new sample app
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Wed, 18 Feb 2015 14:58:15 +0000 (14:58 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 18 Feb 2015 15:52:05 +0000 (16:52 +0100)
commit850f3733f84031e95087d65aa112ecdce2d0e0b8
treed3b5ce00ac2dbdc2e2e112d4eb693621b5b88895
parentd0c9b58d7156d8b3a41b5711800b8f587335f115
examples/packet_ordering: new sample app

This new app makes use of the librte_reorder library.

It requires at least 3 lcores for RX, Workers (1 or more) and TX threads.
Communication between RX-Workers and Workers-TX is done by using rings.
The flow of mbufs is the following:
 * RX thread gets mbufs from driver, set sequence number and enqueue
   them in ring.
 * Workers dequeue mbufs from ring, do some 'work' and enqueue mbufs in
   ring.
 * TX dequeue mbufs from ring, inserts them in reorder buffer, drains
   mbufs from reorder and sends them to the driver.

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
[Thomas: add in examples/Makefile]
examples/Makefile
examples/packet_ordering/Makefile [new file with mode: 0644]
examples/packet_ordering/main.c [new file with mode: 0644]