diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-06 15:07:20 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-19 07:36:14 +0200 |
commit | 2cecc865ae9b9819ea7f56553847451c5e19e2f1 (patch) | |
tree | eedfe5d5ce62be1d9671084906cb8f71c50360d6 /net/Kconfig | |
parent | 5eb56c4e482937d2e01eb79fcc0086787084ba5a (diff) | |
download | barebox-2cecc865ae9b9819ea7f56553847451c5e19e2f1.tar.gz |
net: Call net_poll() in a poller
This adds calling of net_poll() in a poller. With this we can react to
incoming packets like ping requests or fastboot requests.
We could change to call net_poll() from a poller exclusively, but this
would significantly slow down USB network controllers. As described in
the patch these take a long time in the packet receive path. To work
around this we keep the networking users call net_poll() at a high rate
when they are waiting for incoming packets and only every 10ms we call
net_poll() from a poller to get incoming traffic when no networking
protocol is actively calling net_poll().
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/Kconfig')
-rw-r--r-- | net/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/Kconfig b/net/Kconfig index 12b6bdb56d..dc32f6a2cb 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -1,5 +1,6 @@ menuconfig NET bool "Networking Support" + select POLLER if NET |