Here again, Tom DeCanio wrote this code, so I have not changed it.

I will look at this API to see how it can be used better.

Regards,
-Ken

From: Eric Leblond [mailto:notifications@github.com]
Sent: Wednesday, June 26, 2013 4:34 AM
To: inliniac/suricata
Cc: Kenneth Steele
Subject: Re: [suricata] Initial Tile mPIPE support (#403)


In src/runmode-tile.c:

> +    intmax_t pipelines;

> +

> +    if (ConfGetInt("mpipe.threads", &pipelines) == 1) {

> +        TileNumPipelines = pipelines;

> +    } else {

> +        TileNumPipelines = pipe_max;

> +    }

> +    SCLogInfo("%d Tilera worker threads", TileNumPipelines);

> +

> +    ReceiveMpipeInit();

> +

> +    char *mpipe_dev = NULL;

> +    int nlive = LiveGetDeviceCount();

> +    if (nlive > 0) {

> +        SCLogInfo("Using %d live device(s).", nlive);

> +        /*mpipe_dev = LiveGetDevice(0);*/

What's wrong with LiveDevice API here ? ;)

—
Reply to this email directly or view it on GitHub<https://github.com/inliniac/suricata/pull/403/files#r4886358>.