tcp: Fix wrap around comparison bug

The variables p_curtick and p_lasttick are not in usecs.

Reviewed by:	tuexen
Sponsored by:	Netflix, Inc.

(cherry picked from commit 79059e0ec9)
This commit is contained in:
Nick Banks 2025-08-01 23:21:42 +02:00 committed by Franco Fichtner
parent ea12fa13fe
commit e89e8dc533

View file

@ -1118,8 +1118,7 @@ again:
hpts->p_wheel_complete = 0;
HPTS_MTX_ASSERT(hpts);
slots_to_run = hpts_slots_diff(hpts->p_prev_slot, hpts->p_cur_slot);
if (((hpts->p_curtick - hpts->p_lasttick) >
((NUM_OF_HPTSI_SLOTS-1) * HPTS_USECS_PER_SLOT)) &&
if (((hpts->p_curtick - hpts->p_lasttick) > (NUM_OF_HPTSI_SLOTS - 1)) &&
(hpts->p_on_queue_cnt != 0)) {
/*
* Wheel wrap is occuring, basically we