From: Bruce Richardson Date: Thu, 23 Feb 2017 16:42:03 +0000 (+0000) Subject: examples/quota_watermark: fix requirement for 2M pages X-Git-Tag: spdx-start~4435 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c9051455d6bcd4bfdffdc83c8f2c329a7534921c;p=dpdk.git examples/quota_watermark: fix requirement for 2M pages The sample app was forcing the shared memory block for high/low watermarks to be placed in a memzone on 2M pages. This prevented it from running on systems with just 1G pages, so remove the flag forcing 2M pages. Fixes: 1d6c3ee3321a ("examples/quota_watermark: initial import") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson --- diff --git a/examples/quota_watermark/qw/init.c b/examples/quota_watermark/qw/init.c index e941ce829f..95a9f94e74 100644 --- a/examples/quota_watermark/qw/init.c +++ b/examples/quota_watermark/qw/init.c @@ -168,7 +168,7 @@ setup_shared_variables(void) const struct rte_memzone *qw_memzone; qw_memzone = rte_memzone_reserve(QUOTA_WATERMARK_MEMZONE_NAME, - 2 * sizeof(int), rte_socket_id(), RTE_MEMZONE_2MB); + 2 * sizeof(int), rte_socket_id(), 0); if (qw_memzone == NULL) rte_exit(EXIT_FAILURE, "%s\n", rte_strerror(rte_errno));