diff --git a/config.ini b/config.ini index fd2e4f906..6ed389aed 100644 --- a/config.ini +++ b/config.ini @@ -186,6 +186,8 @@ kern.features.inet6=1 kern.ipc.somaxconn=32768 kern.ipc.maxsockbuf=16777216 +net.add_addr_allfibs=1 + net.link.ether.inet.maxhold=5 net.inet.tcp.fast_finwait2_recycle=1 diff --git a/lib/ff_dpdk_kni.c b/lib/ff_dpdk_kni.c index 8a75a53ca..f2721e9f1 100644 --- a/lib/ff_dpdk_kni.c +++ b/lib/ff_dpdk_kni.c @@ -219,7 +219,7 @@ kni_process_tx(uint16_t port_id, uint16_t queue_id, struct rte_mbuf **pkts_burst, unsigned count) { /* read packet from kni ring(phy port) and transmit to kni */ - uint16_t nb_tx, nb_kni_tx; + uint16_t nb_tx, nb_kni_tx = 0; nb_tx = rte_ring_dequeue_burst(kni_rp[port_id], (void **)pkts_burst, count, NULL); #ifdef FF_KNI_KNI @@ -253,7 +253,7 @@ static int kni_process_rx(uint16_t port_id, uint16_t queue_id, struct rte_mbuf **pkts_burst, unsigned count) { - uint16_t nb_kni_rx, nb_rx; + uint16_t nb_kni_rx = 0, nb_rx; #ifdef FF_KNI_KNI if (ff_global_cfg.kni.type == KNI_TYPE_KNI) {