[PATCH v3 01/10] tcp, util: Add function for scaling to linearly interpolated factor, use it