add net.add_addr_allfibs=1 in config.ini.

This commit is contained in:
fengbojiang 2023-09-26 11:24:22 +08:00
parent beaeed64a9
commit b61b7363d2
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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) {