diff options
| author | Stefano Brivio <sbrivio@redhat.com> | 2025-12-07 20:56:53 +0100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-12-08 08:00:09 +0100 |
| commit | 6305b6ceec518c4f8cca4a8e9cc7624e376f84c9 (patch) | |
| tree | 2fb8c9adb775c2805ab8c0a950953d5a67ace2ce /test/lib/git:/passt.top | |
| parent | 5d838441887a15d4564248f36de5743420117ac6 (diff) | |
| download | passt-6305b6ceec518c4f8cca4a8e9cc7624e376f84c9.tar passt-6305b6ceec518c4f8cca4a8e9cc7624e376f84c9.tar.gz passt-6305b6ceec518c4f8cca4a8e9cc7624e376f84c9.tar.bz2 passt-6305b6ceec518c4f8cca4a8e9cc7624e376f84c9.tar.lz passt-6305b6ceec518c4f8cca4a8e9cc7624e376f84c9.tar.xz passt-6305b6ceec518c4f8cca4a8e9cc7624e376f84c9.tar.zst passt-6305b6ceec518c4f8cca4a8e9cc7624e376f84c9.zip | |
tcp, util: Add function for scaling to linearly interpolated factor, use it
Right now, the only need for this kind of function comes from
tcp_get_sndbuf(), which calculates the amount of sending buffer we
want to use depending on its own size: we want to use more of it
if it's smaller, as bookkeeping overhead is usually lower and we rely
on auto-tuning there, and use less of it when it's bigger.
For this purpose, the new function is overly generic: @x is the same
as @y, that is, we want to use more or less of the buffer depending
on the size of the buffer itself.
However, an upcoming change will need that generality, as we'll want
to scale the amount of sending buffer we use depending on another
(scaled) factor.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/git:/passt.top')
0 files changed, 0 insertions, 0 deletions
