lib/librte_eal: fix unrecongized telemetry eal arg
PATCH 1/1 lib/librte_eal: fix unrecongized telemetry eal arg
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.
--- lib/librte_eal/common/eal_common_options.c | 3 +++ lib/librte_eal/common/eal_options.h | 4 ++++ 2 files changed, 7 insertions(+)
lib/librte_eal/common/eal_common_options.c +3 -0
@@ -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 } };
lib/librte_eal/common/eal_options.h +4 -0
@@ -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 , +#endifOPT_LONG_MAX_NUM };
Signature · 13 lines
2.17.1 -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
+Harry Van Haaren
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Quoted 33 lines · Sean Morrissey
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.Signed-off-by Sean Morrissey <[email protected]>--- lib/librte_eal/common/eal_common_options.c | 3 +++ lib/librte_eal/common/eal_options.h | 4 ++++ 2 files changed, 7 insertions(+)lib/librte_eal/common/eal_common_options.c +3
-0@@ -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 } };lib/librte_eal/common/eal_options.h +0
-0
lib/librte_eal/common/eal_options.h enum { · line 78
Quoted 10 lines
lib/librte_eal/common/eal_options.h +4
-0@@ -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 , +#endifOPT_LONG_MAX_NUM };
LGTM, thanks!
Thomas Monjalon
Applied19/07/2019 12:04, Laatz, Kevin:
Quoted 5 lines · Sean Morrissey
Quoted 4 lines
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.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Sean Morrissey <[email protected]>Acked-by Kevin Laatz <[email protected]>
Applied, thanks