Re: [PATCH] inetpeer: use div64_ul() and clamp_val() calculate inet_peer_threshold

2021-03-01 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Mon, 1 Mar 2021 14:05:48 +0800 you wrote: > In inet_initpeers(), struct inet_peer on IA32 uses 128 bytes in nowdays. > Get rid of the cascade and use div64_ul() and clamp_val() calculate that > will not need to be adjusted i

[PATCH] inetpeer: use div64_ul() and clamp_val() calculate inet_peer_threshold

2021-02-28 Thread Yejune Deng
In inet_initpeers(), struct inet_peer on IA32 uses 128 bytes in nowdays. Get rid of the cascade and use div64_ul() and clamp_val() calculate that will not need to be adjusted in the future as suggested by Eric Dumazet. Suggested-by: Eric Dumazet Signed-off-by: Yejune Deng --- net/ipv4/inetpeer.