[PATCH openEuler-1.0-LTS 5/6] tcp: create a helper to model exponential backoff