summaryrefslogtreecommitdiff
path: root/ring_tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ring_tx.c')
-rw-r--r--ring_tx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ring_tx.c b/ring_tx.c
index f91f7f7..b7cde7e 100644
--- a/ring_tx.c
+++ b/ring_tx.c
@@ -61,9 +61,7 @@ void setup_tx_ring_layout(int sock, struct ring *ring, unsigned int size,
ring->layout.tp_frame_size *
ring->layout.tp_block_nr;
- bug_on(ring->layout.tp_block_size < ring->layout.tp_frame_size);
- bug_on((ring->layout.tp_block_size % ring->layout.tp_frame_size) != 0);
- bug_on((ring->layout.tp_block_size % getpagesize()) != 0);
+ ring_verify_layout(ring);
}
void create_tx_ring(int sock, struct ring *ring, int verbose)