Skip to contentSkip to conversation

app/eventdev: fix typos in timer adapter options

PATCH In review Thomas Monjalon 2 participants 3 messages Apr 16, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/eventdev: fix typos in timer adapter options

The options names in code and doc are not the same.

Fixes 98c6292105d4 ("app/eventdev: add options for event timer adapter")
---
 app/test-eventdev/evt_options.c   |  2 +-
 doc/guides/tools/testeventdev.rst | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
app/test-eventdev/evt_options.c +1 -1
index 5f311a570..701cd4e96 100644
@@ -248,7 +248,7 @@ usage(char *program)
 		"\t                             burst mode.\n"
 		"\t--nb_timers        : number of timers to arm.\n"
 		"\t--nb_timer_adptrs  : number of timer adapters to use.\n"
-		"\t--timer_tick_nsec  : timer tick interval in ns.\n"
+		"\t--timer_tick_ns    : timer tick interval in ns.\n"
 		"\t--max_tmo_nsec     : max timeout interval in ns.\n"
 		"\t--expiry_ns        : event timer expiry ns.\n"
 		);
doc/guides/tools/testeventdev.rst +6 -6
index 46effd871..b03c4a17b 100644
@@ -131,7 +131,7 @@ The following are the application command-line options:
 
         Use burst mode event timer adapter as producer.
 
- * ``--timer_tick_nsec``
+ * ``--timer_tick_ns``
 
         Used to dictate number of nano seconds between bucket traversal of the
         event timer adapter. Refer `rte_event_timer_adapter_conf`.
@@ -140,7 +140,7 @@ The following are the application command-line options:
 
         Used to configure event timer adapter max arm timeout in nano seconds.
 
- * ``--expiry_nsec``
+ * ``--expiry_ns``
 
         Dictate the number of nano seconds after which the event timer expires.
 
@@ -379,9 +379,9 @@ Supported application command line options are following::
         --prod_type_ethdev
         --prod_type_timerdev_burst
         --prod_type_timerdev
-        --timer_tick_nsec
+        --timer_tick_ns
         --max_tmo_nsec
-        --expiry_nsec
+        --expiry_ns
         --nb_timers
         --nb_timer_adptrs
 
@@ -478,9 +478,9 @@ Supported application command line options are following::
         --prod_type_ethdev
         --prod_type_timerdev_burst
         --prod_type_timerdev
-        --timer_tick_nsec
+        --timer_tick_ns
         --max_tmo_nsec
-        --expiry_nsec
+        --expiry_ns
         --nb_timers
         --nb_timer_adptrs
 
Signature · 1 line
2.16.2
#2 lore raw
In reply to Thomas Monjalon
Quoted 16 lines · Thomas Monjalon

The options names in code and doc are not the same.

Fixes 98c6292105d4 ("app/eventdev: add options for event timer adapter")
---
 app/test-eventdev/evt_options.c   |  2 +-
 doc/guides/tools/testeventdev.rst | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
app/test-eventdev/evt_options.c +0 -0
index 5f311a570..701cd4e96 100644

app/test-eventdev/evt_options.c usage(char *program) · line 254

Quoted 8 lines
app/test-eventdev/evt_options.c +1 -1
@@ -248,7 +248,7 @@ usage(char *program)
 		"\t                             burst mode.\n"
 		"\t--nb_timers        : number of timers to arm.\n"
 		"\t--nb_timer_adptrs  : number of timer adapters to use.\n"
-		"\t--timer_tick_nsec  : timer tick interval in ns.\n"
+		"\t--timer_tick_ns    : timer tick interval in ns.\n"
 		"\t--max_tmo_nsec     : max timeout interval in ns.\n"
 		"\t--expiry_ns        : event timer expiry ns.\n"
 		);

I think it would be better to maintain consistency across options, I will send a patch to fix it.

Thanks,
Pavan