summaryrefslogtreecommitdiff
path: root/ring.c
diff options
context:
space:
mode:
Diffstat (limited to 'ring.c')
-rw-r--r--ring.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ring.c b/ring.c
index 26de18e..dc58a07 100644
--- a/ring.c
+++ b/ring.c
@@ -34,10 +34,7 @@ void setup_ring_layout_generic(int sock, struct ring *ring, size_t size,
TPACKET_ALIGNMENT << 7);
ring->layout.tp_block_nr = size / ring->layout.tp_block_size;
- ring->layout.tp_frame_nr = ring->layout.tp_block_size /
- ring->layout.tp_frame_size *
- ring->layout.tp_block_nr;
-
+ ring->layout.tp_frame_nr = size / ring->layout.tp_frame_size;
}
void mmap_ring_generic(int sock, struct ring *ring)