pf_ring: set cluster_id even if only one thread is used.

pull/71/merge
Eric Leblond 13 years ago committed by Victor Julien
parent 1f92307517
commit cdbc9be1c3

@ -370,7 +370,6 @@ TmEcode ReceivePfringThreadInit(ThreadVars *tv, void *initdata, void **data) {
/* We only set cluster info if the number of pfring threads is greater than 1 */
ptv->threads = pfconf->threads;
if (ptv->threads > 1) {
ptv->cluster_id = pfconf->cluster_id;
#ifdef HAVE_PFRING_CLUSTER_TYPE
@ -386,14 +385,15 @@ TmEcode ReceivePfringThreadInit(ThreadVars *tv, void *initdata, void **data) {
pfconf->DerefFunc(pfconf);
return TM_ECODE_FAILED;
}
if (ptv->threads > 1) {
SCLogInfo("(%s) Using PF_RING v.%d.%d.%d, interface %s, cluster-id %d",
tv->name, (version & 0xFFFF0000) >> 16, (version & 0x0000FF00) >> 8,
version & 0x000000FF, ptv->interface, ptv->cluster_id);
} else {
SCLogInfo("(%s) Using PF_RING v.%d.%d.%d, interface %s, single-pfring-thread",
SCLogInfo("(%s) Using PF_RING v.%d.%d.%d, interface %s, cluster-id %d, single-pfring-thread",
tv->name, (version & 0xFFFF0000) >> 16, (version & 0x0000FF00) >> 8,
version & 0x000000FF, ptv->interface);
version & 0x000000FF, ptv->interface, ptv->cluster_id);
}
#ifdef HAVE_PFRING_SET_BPF_FILTER

Loading…
Cancel
Save