]> git.proxmox.com Git - mirror_iproute2.git/commit
bpf: Fix number of retries when growing log buffer
authorThomas Graf <tgraf@suug.ch>
Wed, 7 Dec 2016 09:47:59 +0000 (10:47 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 9 Dec 2016 20:42:11 +0000 (12:42 -0800)
commit0f74d0f3a9da9de5fa69bfc9eafcea9b90bbe211
tree7cacc15f3c89a6b5c7a804cad6700b064bfb57a0
parent6566ca8cdb9b892c63a260a03592d3da8711d7d5
bpf: Fix number of retries when growing log buffer

The log buffer is automatically grown when the verifier output does not
fit into the default buffer size. The number of growing attempts was
not sufficient to reach the maximum buffer size so far.

Perform 9 iterations to reach max and let the 10th one fail.

j:0     i:65536         max:16777215
j:1     i:131072        max:16777215
j:2     i:262144        max:16777215
j:3     i:524288        max:16777215
j:4     i:1048576       max:16777215
j:5     i:2097152       max:16777215
j:6     i:4194304       max:16777215
j:7     i:8388608       max:16777215
j:8     i:16777216      max:16777215

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
lib/bpf.c