summaryrefslogtreecommitdiffstats
path: root/include/json.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-08-13 22:12:46 +0200
committerFlorian Westphal <fw@strlen.de>2019-08-14 11:48:08 +0200
commit877baf9538f66f8f238a3e278a1a994734382678 (patch)
treea25a14e23d1bd789326e88968b23e99088401890 /include/json.h
parent015b752465518e072d60f53cf89f8cf4b107d639 (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/json.h')
0 files changed, 0 insertions, 0 deletions