aboutsummaryrefslogtreecommitdiff
path: root/pcap-dpdk.c
diff options
context:
space:
mode:
authorjingleyang <yjyfrombnu@gmail.com>2018-12-21 15:24:33 +0800
committerjingleyang <yjyfrombnu@gmail.com>2018-12-21 15:24:33 +0800
commit14e7dcca8320265e842084d3f52102a494666afc (patch)
tree6d9de6e112e0b45e05b262272196485a262e1e1a /pcap-dpdk.c
parentfe4f9441668a5fcfcbd16316255bac01acad1b86 (diff)
reduce debug msg
Diffstat (limited to 'pcap-dpdk.c')
-rw-r--r--pcap-dpdk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap-dpdk.c b/pcap-dpdk.c
index 81177090..f208ee61 100644
--- a/pcap-dpdk.c
+++ b/pcap-dpdk.c
@@ -251,9 +251,9 @@ static void dpdk_dispatch_inter(void *dpdk_user)
int is_accepted=0;
if(lcore_id == master_lcore_id){
- RTE_LOG(INFO, USER1, "dpdk: lcoreid=%u runs for portid=%u\n", lcore_id, portid);
+ RTE_LOG(DEBUG, USER1, "dpdk: lcoreid=%u runs for portid=%u\n", lcore_id, portid);
}else{
- RTE_LOG(INFO, USER1, "dpdk: lcore %u has nothing to do\n", lcore_id);
+ RTE_LOG(DEBUG, USER1, "dpdk: lcore %u has nothing to do\n", lcore_id);
}
//only use master lcore
if (lcore_id != master_lcore_id){
@@ -397,7 +397,7 @@ static int pcap_dpdk_stats(pcap_t *p, struct pcap_stat *ps)
timersub(&(pd->curr_ts),&(pd->prev_ts), &delta_tm);
uint64_t delta_usec = delta_tm.tv_sec*1e6+delta_tm.tv_usec;
uint64_t delta_bit = (pd->curr_stats.ibytes-pd->prev_stats.ibytes)*8;
- RTE_LOG(INFO, USER1, "delta_usec: %-10"PRIu64" delta_pkt: %-10"PRIu64" delta_bit: %-10"PRIu64"\n", delta_usec, delta_pkt, delta_bit);
+ RTE_LOG(DEBUG, USER1, "delta_usec: %-10"PRIu64" delta_pkt: %-10"PRIu64" delta_bit: %-10"PRIu64"\n", delta_usec, delta_pkt, delta_bit);
pd->pps = (uint64_t)(delta_pkt*1e6f/delta_usec);
pd->bps = (uint64_t)(delta_bit*1e6f/delta_usec);
nic_stats_display(pd);