Ensure that the poll_burst <= poll_burst_max constraint really holds.
Reviewed by: luigi
This commit is contained in:
parent
a8bd95a571
commit
61f7581d08
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128277
@ -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