summaryrefslogtreecommitdiff
path: root/ring_tx.c
diff options
context:
space:
mode:
authorChristian Wiese <chris@opensde.org>2014-04-12 00:56:37 +0200
committerDaniel Borkmann <dborkman@redhat.com>2014-04-12 11:27:20 +0200
commita4772aa046708acfafdf2957ed756d076821bba5 (patch)
treef0575a694f064b775a04226663edf3ab237b721d /ring_tx.c
parentb8bb2e21ec3a685dde73565e822b5ff915cc316d (diff)
built_in: changed to use RUNTIME_PAGE_SIZE instead of PAGE_SIZE
References: https://github.com/netsniff-ng/netsniff-ng/commit/453f6eb9d79dd5aa2812ef956b22723f0a493086 https://github.com/netsniff-ng/netsniff-ng/pull/112 Signed-off-by: Christian Wiese <chris@opensde.org> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ring_tx.c')
-rw-r--r--ring_tx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ring_tx.c b/ring_tx.c
index 9fef7f0..17d5f26 100644
--- a/ring_tx.c
+++ b/ring_tx.c
@@ -51,8 +51,8 @@ void setup_tx_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 :