summaryrefslogtreecommitdiff
path: root/ring_rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ring_rx.c')
-rw-r--r--ring_rx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ring_rx.c b/ring_rx.c
index 8ddc44b..9c63dbd 100644
--- a/ring_rx.c
+++ b/ring_rx.c
@@ -165,10 +165,7 @@ retry:
layout_size);
if (errno == ENOMEM && ring->layout.tp_block_nr > 1) {
- ring->layout.tp_block_nr >>= 1;
- ring->layout.tp_frame_nr = ring->layout.tp_block_size /
- ring->layout.tp_frame_size *
- ring->layout.tp_block_nr;
+ shrink_ring_layout_generic(ring);
goto retry;
}
if (ret < 0)