examples/distributor: new sample app
authorReshma Pattan <reshma.pattan@intel.com>
Mon, 3 Nov 2014 15:49:44 +0000 (15:49 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 16 Nov 2014 21:54:56 +0000 (22:54 +0100)
commit07db4a9750940bbf95299a89afd12d178556e064
tree96fab01862fdcc5700a188198d8affd13949ac00
parent2e84937377dae5c913f739bb3b94a29a3310a305
examples/distributor: new sample app

A new sample app that shows the usage of the distributor library. This
app works as follows:

* An RX thread runs which pulls packets from each ethernet port in turn
  and passes those packets to worker using a distributor component.
* The workers take the packets in turn, and determine the output port
  for those packets using basic l2forwarding doing an xor on the source
  port id.
* The RX thread takes the returned packets from the workers and enqueue
  those packets into an rte_ring structure.
* A TX thread pulls the packets off the rte_ring structure and then
  sends each packet out the output port specified previously by the worker
* Command-line option support provided only for portmask.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/Makefile
examples/distributor/Makefile [new file with mode: 0644]
examples/distributor/main.c [new file with mode: 0644]
examples/distributor/main.h [new file with mode: 0644]