summaryrefslogtreecommitdiff
path: root/ring_rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ring_rx.c')
-rw-r--r--ring_rx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ring_rx.c b/ring_rx.c
index 355d10c..59cafd3 100644
--- a/ring_rx.c
+++ b/ring_rx.c
@@ -46,8 +46,8 @@ void setup_rx_ring_layout(int sock, struct ring *ring, unsigned int size,
fmemset(&ring->layout, 0, sizeof(ring->layout));
ring->layout.tp_block_size = (jumbo_support ?
- getpagesize() << 4 :
- getpagesize() << 2);
+ RUNTIME_PAGE_SIZE << 4 :
+ RUNTIME_PAGE_SIZE << 2);
ring->layout.tp_frame_size = (jumbo_support ?
TPACKET_ALIGNMENT << 12 :