diff options
author | Florian Westphal <fw@strlen.de> | 2019-08-13 22:12:46 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-08-14 11:48:08 +0200 |
commit | 877baf9538f66f8f238a3e278a1a994734382678 (patch) | |
tree | a25a14e23d1bd789326e88968b23e99088401890 /include/cache.h | |
parent | 015b752465518e072d60f53cf89f8cf4b107d639 (diff) |
src: mnl: retry when we hit -ENOBUFS
tests/shell/testcases/transactions/0049huge_0
still fails with ENOBUFS error after endian fix done in
previous patch. Its enough to increase the scale factor (4)
on s390x, but rather than continue with these "guess the proper
size" game, just increase the buffer size and retry up to 3 times.
This makes above test work on s390x.
So, implement what Pablo suggested in the earlier commit:
We could also explore increasing the buffer and retry if
mnl_nft_socket_sendmsg() hits ENOBUFS if we ever hit this problem again.
v2: call setsockopt unconditionally, then increase on error.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/cache.h')
0 files changed, 0 insertions, 0 deletions