mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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:
parent
ea12fa13fe
commit
e89e8dc533
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue