diff options
author | 2021-03-01 14:05:48 +0800 | |
---|---|---|
committer | 2021-03-01 13:32:12 -0800 | |
commit | 8bd2a05527349c8627d2b9795d3c7a6f76033676 (patch) | |
tree | aeb34baeb465eb1937b01d46fe252bb4f0b73099 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | net/qrtr: fix __netdev_alloc_skb call (diff) | |
download | linux-dev-8bd2a05527349c8627d2b9795d3c7a6f76033676.tar.xz linux-dev-8bd2a05527349c8627d2b9795d3c7a6f76033676.zip |
inetpeer: use div64_ul() and clamp_val() calculate inet_peer_threshold
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 <eric.dumazet@gmail.com>
Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions