diff options
| author | Jarek Poplawski <[email protected]> | 2009-07-14 09:41:00 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2009-07-20 07:39:29 -0700 |
| commit | be916cdebe4dc720a23b1a9bb589f2c22afd6589 (patch) | |
| tree | 310a6de2576aaf6e5a87463ee89bf7bea745badd /include/linux | |
| parent | c3059477fce2d956a0bb3e04357324780c5d8eeb (diff) | |
ipv4: Fix inflate_threshold_root automatically
During large updates there could be triggered warnings like: "Fix
inflate_threshold_root. Now=25 size=11 bits" if inflate() of the root
node isn't finished in 10 loops. It should be much rarer now, after
changing the threshold from 15 to 25, and a temporary problem, so
this patch tries to handle it automatically using a fix variable to
increase by one inflate threshold for next root resizes (up to the 35
limit, max fix = 10). The fix variable is decreased when root's
inflate() finishes below 7 loops (even if some other, smaller table/
trie is updated -- for simplicity the fix variable is global for now).
Reported-by: Pawel Staszewski <[email protected]>
Reported-by: Jorge Boncompte [DTI2] <[email protected]>
Tested-by: Pawel Staszewski <[email protected]>
Signed-off-by: Jarek Poplawski <[email protected]>
Signed-off-by: Robert Olsson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions