[Snort-devel] [PATCH] DPDK DAQ Module

Tiwei Bie btw at ...3659...
Thu Jun 16 10:37:42 EDT 2016


On Thu, Jun 16, 2016 at 08:42:33PM +0800, Tiwei Bie wrote:
> On Thu, Jun 16, 2016 at 02:22:01PM +0300, Maxim Uvarov wrote:
> > That is single thread dpdk-daq module, right?
> > 
> 
> The thread created by rte_eal_init() won't be used. All the daq
> methods (e.g. dpdk_daq_acquire) will run on the snort's thread
> context.
> 

More details:

The thread which calls rte_eal_init() will become DPDK's master
thread. So, when you only specify one lcore with eal's -c option,
such as: -c 40, no DPDK's slave threads will be created. And the
affinity of the snort thread which becomes DPDK's master thread
will be set to CPU6 (the 7th CPU).

When you specify more than one lcores with eal's -c option, such
as: -c ff, seven slave threads will be created by rte_eal_init().
But they won't be used.

And the daq methods (e.g. dpdk_daq_acquire) will be called in the
snort thread context.

Best regards,
Tiwei Bie





More information about the Snort-devel mailing list