Ensure that the poll_burst <= poll_burst_max constraint really holds.

Reviewed by:	luigi
This commit is contained in:
ru 2004-04-15 07:38:44 +00:00
parent 26c9f4b636
commit 2b44d13e3e

View File

@ -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) ?