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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:04:47 +0000 (09:04 +0200)
commitf6b264f2a04c7be92a11819961970d16c91449da
tree867f2dce4ad61ab3392edb6fba2cb724b82603e6
parent61260486790e22de1e31dd178a0925bc5b8e4d9e
net: revert default NAPI poll timeout to 2 jiffies

[ Upstream commit a4837980fd9fa4c70a821d11831698901baef56b ]

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: 7acf8a1e8a28 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev.c