[v1,0/8] Clean up rte_option

Message ID cover.1545325395.git.gaetan.rivet@6wind.com (mailing list archive)


Gaƫtan Rivet Dec. 20, 2018, 5:06 p.m. UTC
  rte_option lib might benefit from a few improvements.


  - list registered options on /rte/app --help
  - check duplicates within base EAL options
  - rename some fields to be closer to standard struct option
    and just cleaner overall.
  - fix some strange code (static iterator?)
  - fix doc, improve API a little...

Gaetan Rivet (8):
  option: use bare option string as name
  option: do not use static iterator
  option: add usage string
  option: rename name field
  option: check against common option on register
  option: fix log level of error in register
  option: improve library documentation
  option: return an error when register fail

 lib/librte_eal/common/eal_common_options.c |  1 +
 lib/librte_eal/common/eal_private.h        |  7 +++
 lib/librte_eal/common/include/rte_option.h | 17 +++++--
 lib/librte_eal/common/rte_option.c         | 57 +++++++++++++++++++---
 lib/librte_telemetry/rte_telemetry.c       |  3 +-
 5 files changed, 72 insertions(+), 13 deletions(-)