summaryrefslogtreecommitdiff
path: root/pcap_sg.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap_sg.c')
-rw-r--r--pcap_sg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap_sg.c b/pcap_sg.c
index 7a2bfb0..9d07656 100644
--- a/pcap_sg.c
+++ b/pcap_sg.c
@@ -156,8 +156,8 @@ static int pcap_sg_prepare_access(int fd, enum pcap_mode mode, bool jumbo)
size_t i, len = 0;
iov_slot = 0;
- len = jumbo ? (PAGE_SIZE * 16) /* 64k max */ :
- (PAGE_SIZE * 3) /* 12k max */;
+ len = jumbo ? (RUNTIME_PAGE_SIZE * 16) /* 64k max */ :
+ (RUNTIME_PAGE_SIZE * 3) /* 12k max */;
for (i = 0; i < array_size(iov); ++i) {
iov[i].iov_base = xzmalloc_aligned(len, 64);