]> git.baikalelectronics.ru Git - kernel.git/commit
net: revert default NAPI poll timeout to 2 jiffies
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Mon, 6 Apr 2020 11:39:32 +0000 (14:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Apr 2020 01:30:56 +0000 (18:30 -0700)
commit1acca5fe9462e798c3b9ceffe466fb4a8fcaa3b0
tree1847bf2eb7d027c099b5937dcf85359065426af5
parent8f05e6826724d74101e42f19c6ca2314ab849abc
net: revert default NAPI poll timeout to 2 jiffies

For HZ < 1000 timeout 2000us rounds up to 1 jiffy but expires randomly
because next timer interrupt could come shortly after starting softirq.

For commonly used CONFIG_HZ=1000 nothing changes.

Fixes: 1284c40c9b04 ("Replace 2 jiffies with sysctl netdev_budget_usecs to enable softirq tuning")
Reported-by: Dmitry Yakunin <zeil@yandex-team.ru>
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c