net: Both TX and RX fibers allow other fibers to run

If the machine is heavily loaded with network data, it is
a good idea to let the other fibers to run after each packet
received or sent. Otherwise the system might overflow the
kserver command stack due to e.g. unprocessed tick events
there.

Change-Id: I5edef2459195d3d9cfcfc38b99c54c66d17334b6
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-06-08 14:16:17 +03:00
parent b4b296b888
commit 17263b099b
2 changed files with 4 additions and 0 deletions

View file

@ -346,6 +346,8 @@ static void net_rx_fiber(void)
}
net_print_statistics();
fiber_yield();
}
}

View file

@ -62,6 +62,8 @@ static void net_if_tx_fiber(struct net_if *iface)
net_analyze_stack("TX fiber", iface->tx_fiber_stack,
sizeof(iface->tx_fiber_stack));
fiber_yield();
}
}