mirror of https://github.com/F-Stack/f-stack.git
add net.add_addr_allfibs=1 in config.ini.
This commit is contained in:
parent
beaeed64a9
commit
b61b7363d2
|
@ -186,6 +186,8 @@ kern.features.inet6=1
|
||||||
kern.ipc.somaxconn=32768
|
kern.ipc.somaxconn=32768
|
||||||
kern.ipc.maxsockbuf=16777216
|
kern.ipc.maxsockbuf=16777216
|
||||||
|
|
||||||
|
net.add_addr_allfibs=1
|
||||||
|
|
||||||
net.link.ether.inet.maxhold=5
|
net.link.ether.inet.maxhold=5
|
||||||
|
|
||||||
net.inet.tcp.fast_finwait2_recycle=1
|
net.inet.tcp.fast_finwait2_recycle=1
|
||||||
|
|
|
@ -219,7 +219,7 @@ kni_process_tx(uint16_t port_id, uint16_t queue_id,
|
||||||
struct rte_mbuf **pkts_burst, unsigned count)
|
struct rte_mbuf **pkts_burst, unsigned count)
|
||||||
{
|
{
|
||||||
/* read packet from kni ring(phy port) and transmit to kni */
|
/* 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);
|
nb_tx = rte_ring_dequeue_burst(kni_rp[port_id], (void **)pkts_burst, count, NULL);
|
||||||
|
|
||||||
#ifdef FF_KNI_KNI
|
#ifdef FF_KNI_KNI
|
||||||
|
@ -253,7 +253,7 @@ static int
|
||||||
kni_process_rx(uint16_t port_id, uint16_t queue_id,
|
kni_process_rx(uint16_t port_id, uint16_t queue_id,
|
||||||
struct rte_mbuf **pkts_burst, unsigned count)
|
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
|
#ifdef FF_KNI_KNI
|
||||||
if (ff_global_cfg.kni.type == KNI_TYPE_KNI) {
|
if (ff_global_cfg.kni.type == KNI_TYPE_KNI) {
|
||||||
|
|
Loading…
Reference in New Issue