From debacba0297fbe214b4185a9791e6a9fdf6642ba Mon Sep 17 00:00:00 2001 From: Sean Morrissey Date: Mon, 15 Jul 2019 11:54:34 +0100 Subject: [PATCH 1/1] eal: fix parsing option --telemetry Added telemetry to EAL long options so that when --telemetry is passed as an EAL arg that there is no unrecognized argument error message printed. Fixes: 8877ac688b52 ("telemetry: introduce infrastructure") Cc: stable@dpdk.org Signed-off-by: Sean Morrissey Tested-by: John OLoughlin Acked-by: Kevin Laatz --- lib/librte_eal/common/eal_common_options.c | 3 +++ lib/librte_eal/common/eal_options.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 512d5088e8..24e36cf239 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -81,6 +81,9 @@ eal_long_options[] = { {OPT_LEGACY_MEM, 0, NULL, OPT_LEGACY_MEM_NUM }, {OPT_SINGLE_FILE_SEGMENTS, 0, NULL, OPT_SINGLE_FILE_SEGMENTS_NUM}, {OPT_MATCH_ALLOCATIONS, 0, NULL, OPT_MATCH_ALLOCATIONS_NUM}, +#ifdef RTE_LIBRTE_TELEMETRY + {OPT_TELEMETRY, 0, NULL, OPT_TELEMETRY_NUM }, +#endif {0, 0, NULL, 0 } }; diff --git a/lib/librte_eal/common/eal_options.h b/lib/librte_eal/common/eal_options.h index 9855429e58..e4c8e25c28 100644 --- a/lib/librte_eal/common/eal_options.h +++ b/lib/librte_eal/common/eal_options.h @@ -69,6 +69,10 @@ enum { OPT_IOVA_MODE_NUM, #define OPT_MATCH_ALLOCATIONS "match-allocations" OPT_MATCH_ALLOCATIONS_NUM, +#ifdef RTE_LIBRTE_TELEMETRY + #define OPT_TELEMETRY "telemetry" + OPT_TELEMETRY_NUM, +#endif OPT_LONG_MAX_NUM }; -- 2.20.1