diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-09-10 10:23:16 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-09-10 21:38:02 +0200 |
commit | 860671662d3f7aeec156932aff648e04f0e2ec92 (patch) | |
tree | cef13231aa07bae69a3c47cdc347f3ef0bfe5b8a /tests/py/any/ct.t.json.output | |
parent | e64c42b19a9e50009b4d8877aeee95edb6818990 (diff) |
mnl: fix --echo buffer size again
If restart is triggered with --echo, it causes rules to be duplicated
which is not correct. Remove restart logic.
1. If user passes --echo, use a default 4mb buffer.
2. assume each element in the batch will result in a 1k
notification.
This passes tests both in x86_64 and s390.
Joint work with Florian Westphal.
Fixes: 877baf9538f6 ("src: mnl: retry when we hit -ENOBUFS")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any/ct.t.json.output')
0 files changed, 0 insertions, 0 deletions