Hi Eric,

I went back to see why Tom didn’t use RunModeSetLiveCaptureWorkers() and to see if I could make it work. That API makes the assumption that there are threads dedicated to each Live Device, whereas mPipe can process multiple interfaces using one set of threads. I might be able to use RunModeSetLiveCaptureWorkersForDevice() by creating a fake device that covers all the real devices.

Regards,
-Ken

From: Eric Leblond [mailto:notifications@github.com]
Sent: Wednesday, June 26, 2013 4:24 AM
To: inliniac/suricata
Cc: Kenneth Steele
Subject: Re: [suricata] Initial Tile mPIPE support (#403)


In src/runmode-tile.c:

> +            SCLogInfo("Invalid mode (no in tap, ips)");

> +        }

> +    }

> +    return aconf;

> +}

> +

> +/**

> + * \brief RunModeIdsTileMpipeWorkers set up to process all modules in each thread.

> + *

> + * \param de_ctx pointer to the Detection Engine

> + * \param iface pointer to the name of the interface from which we will

> + *              fetch the packets

> + * \retval 0 if all goes well. (If any problem is detected the engine will

> + *           exit())

> + */

> +int RunModeIdsTileMpipeWorkers(DetectEngineCtx *de_ctx)

Why did you not use the RunModeSetLiveCaptureWorkers like in other modules (see https://github.com/inliniac/suricata/blob/master/src/runmode-af-packet.c#L492) ?

—
Reply to this email directly or view it on GitHub<https://github.com/inliniac/suricata/pull/403/files#r4886206>.