netmap: output cleanup

pull/2137/head
Victor Julien 10 years ago
parent b3bf7a5729
commit 2beb39469b

@ -267,7 +267,7 @@ finalize:
} }
SC_ATOMIC_RESET(aconf->ref); SC_ATOMIC_RESET(aconf->ref);
(void) SC_ATOMIC_ADD(aconf->ref, aconf->threads); (void) SC_ATOMIC_ADD(aconf->ref, aconf->threads);
SCLogInfo("Using %d threads for interface %s", aconf->threads, SCLogPerf("Using %d threads for interface %s", aconf->threads,
aconf->iface_name); aconf->iface_name);
return aconf; return aconf;

@ -725,7 +725,7 @@ static TmEcode ReceiveNetmapThreadInit(ThreadVars *tv, void *initdata, void **da
if ((aconf->copy_mode != NETMAP_COPY_MODE_NONE) && active_runmode if ((aconf->copy_mode != NETMAP_COPY_MODE_NONE) && active_runmode
&& !strcmp("workers", active_runmode)) { && !strcmp("workers", active_runmode)) {
ntv->flags |= NETMAP_FLAG_ZERO_COPY; ntv->flags |= NETMAP_FLAG_ZERO_COPY;
SCLogInfo("Enabling zero copy mode for %s->%s", SCLogPerf("Enabling zero copy mode for %s->%s",
aconf->iface_name, aconf->out_iface_name); aconf->iface_name, aconf->out_iface_name);
} else { } else {
uint16_t ring_size = ntv->ifsrc->rings[0].rx->num_slots; uint16_t ring_size = ntv->ifsrc->rings[0].rx->num_slots;
@ -739,7 +739,7 @@ static TmEcode ReceiveNetmapThreadInit(ThreadVars *tv, void *initdata, void **da
} }
if (aconf->bpf_filter) { if (aconf->bpf_filter) {
SCLogInfo("Using BPF '%s' on iface '%s'", SCLogConfig("Using BPF '%s' on iface '%s'",
aconf->bpf_filter, ntv->ifsrc->ifname); aconf->bpf_filter, ntv->ifsrc->ifname);
if (pcap_compile_nopcap(default_packet_size, /* snaplen_arg */ if (pcap_compile_nopcap(default_packet_size, /* snaplen_arg */
LINKTYPE_ETHERNET, /* linktype_arg */ LINKTYPE_ETHERNET, /* linktype_arg */
@ -1054,7 +1054,7 @@ static void ReceiveNetmapThreadExitStats(ThreadVars *tv, void *data)
NetmapThreadVars *ntv = (NetmapThreadVars *)data; NetmapThreadVars *ntv = (NetmapThreadVars *)data;
NetmapDumpCounters(ntv); NetmapDumpCounters(ntv);
SCLogInfo("(%s) Kernel: Packets %" PRIu64 ", dropped %" PRIu64 ", bytes %" PRIu64 "", SCLogPerf("(%s) Kernel: Packets %" PRIu64 ", dropped %" PRIu64 ", bytes %" PRIu64 "",
tv->name, tv->name,
StatsGetLocalCounterValue(tv, ntv->capture_kernel_packets), StatsGetLocalCounterValue(tv, ntv->capture_kernel_packets),
StatsGetLocalCounterValue(tv, ntv->capture_kernel_drops), StatsGetLocalCounterValue(tv, ntv->capture_kernel_drops),

Loading…
Cancel
Save