[dpdk-dev] [PATCH v7] distributor_app: new sample app

Thomas Monjalon thomas.monjalon at 6wind.com
Sun Nov 16 22:59:34 CET 2014


2014-11-14 08:44, Pattan, Reshma:
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> > > > From: Reshma Pattan <reshma.pattan at intel.com>
> > > >
> > > > 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.
> > > >
> > > > v5 change:
> > > > * Handled gracefull shutdown of rx and tx threads upon SIGINT.
> > > >
> > > > v6 change:
> > > > * modified graceful shutdown logic to handle all threads upon SIGINT
> > > > * removed call to rte_eal_pci_probe()
> > > > * added seperate print_stats function
> > > >
> > > > v7 change:
> > > > * passing NULL as rxconf/txconf parameter for rx/tx queue setup
> > > > * removed zero-ed fields from port conf structure
> > > > * fixed style related comments
> > > >
> > > >
> > > > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> > > > Signed-off-by: Reshma Pattan <reshma.pattan at intel.com>
> > >
> > > Acked-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
> > 
> > Before applying this patch, I have 2 comments:
> > - Other examples directories don't have _app suffix.
> > - checkpatch reports "switch and case should be at the same indent"
> > 
> > If you agree I will fix these 2 minor issues before applying.
> 
> Fine with me. You can proceed.

Applied

Thanks
-- 
Thomas


More information about the dev mailing list