Re: [PATCH] net: core: fix msleep() is not accurate

2020-12-16 Thread Jakub Kicinski
On Tue, 15 Dec 2020 10:04:25 +0800 Yejune Deng wrote: > See Documentation/timers/timers-howto.rst, msleep() is not > for (1ms - 20ms), use usleep_range() instead. > > Signed-off-by: Yejune Deng # Form letter - net-next is closed We have already sent the networking pull request for 5.11 and

[PATCH] net: core: fix msleep() is not accurate

2020-12-14 Thread Yejune Deng
See Documentation/timers/timers-howto.rst, msleep() is not for (1ms - 20ms), use usleep_range() instead. Signed-off-by: Yejune Deng --- net/core/dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index d33099f..c0aa52f 100644 ---

Re: [PATCH] net: core: fix msleep() is not accurate

2020-12-10 Thread Yejune Deng
Does anyone else have a different opinion? If not,I will adopt it and resubmit. On Thu, Dec 10, 2020 at 6:19 PM Eric Dumazet wrote: > > On Thu, Dec 10, 2020 at 10:35 AM Yejune Deng wrote: > > > > See Documentation/timers/timers-howto.rst, msleep() is not > > for (1ms - 20ms), There is a more

Re: [PATCH] net: core: fix msleep() is not accurate

2020-12-10 Thread Eric Dumazet
On Thu, Dec 10, 2020 at 10:35 AM Yejune Deng wrote: > > See Documentation/timers/timers-howto.rst, msleep() is not > for (1ms - 20ms), There is a more advanced API is used. > > Signed-off-by: Yejune Deng > --- > net/core/dev.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff

[PATCH] net: core: fix msleep() is not accurate

2020-12-10 Thread Yejune Deng
See Documentation/timers/timers-howto.rst, msleep() is not for (1ms - 20ms), There is a more advanced API is used. Signed-off-by: Yejune Deng --- net/core/dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index d33099f..6e83ee03 100644