From 8781bfdea3db59236b9954bfda82c2ebb4a54c56 Mon Sep 17 00:00:00 2001
From: Sebastian Chlad <sebastian.chlad@suse.com>
Date: Wed, 3 Sep 2025 13:35:24 +0200
Subject: [PATCH liburing] test/recvsend_bundle: enlarge recv buf-ring to 2 MiB
 to avoid ENOBUFS on ppc64

Sub-test (d) "bundling with full socket" pre-fills the peer until EAGAIN.
On some architectures (like ppc64), once the tcp_w/rmem min is set to higher
value, like 64k and with autotuning on, the sender can queue more than the
1MiB before the receiver arms multishot recv. With a 1MiB provided-buffer
pool (MSG_SIZE * RECV_BIDS, so 8192 * 128), the first recv runs out of
provided buffers and fails with -105 (ENOBUFS).

Bump RECV_BIDS from 8192 to 16384, so the pool no longer underflows
during the prefill on ppc64. This is a minimal, test-only tweak to
stabilize results across different arches without changing test logic.

Signed-off-by: Sebastian Chlad <sebastian.chlad@suse.com>
---
 test/recvsend_bundle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/recvsend_bundle.c b/test/recvsend_bundle.c
index d6c5ec3b..da076a52 100644
--- a/test/recvsend_bundle.c
+++ b/test/recvsend_bundle.c
@@ -21,7 +21,7 @@ static int nr_msgs;
 static int use_tcp;
 static int classic_buffers;
 
-#define RECV_BIDS	8192
+#define RECV_BIDS	16384
 #define RECV_BID_MASK	(RECV_BIDS - 1)
 
 #include "liburing.h"
-- 
2.51.0

