Ensure that the poll_burst <= poll_burst_max constraint really holds.
Reviewed by: luigi
This commit is contained in:
parent
26c9f4b636
commit
2b44d13e3e
@ -369,6 +369,8 @@ netisr_poll(void)
|
||||
else if (poll_each_burst > poll_burst_max)
|
||||
poll_each_burst = poll_burst_max;
|
||||
|
||||
if (poll_burst > poll_burst_max)
|
||||
poll_burst = poll_burst_max;
|
||||
residual_burst = poll_burst;
|
||||
}
|
||||
cycles = (residual_burst < poll_each_burst) ?
|
||||
|
Loading…
Reference in New Issue
Block a user