summaryrefslogtreecommitdiff
path: root/ring_tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ring_tx.c')
-rw-r--r--ring_tx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ring_tx.c b/ring_tx.c
index aee1307..b8ce446 100644
--- a/ring_tx.c
+++ b/ring_tx.c
@@ -64,10 +64,7 @@ retry:
sizeof(ring->layout));
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;
}