summaryrefslogtreecommitdiffstats
path: root/src/plugins/hs_apps/sapi/vpp_echo.c
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2019-10-11 15:13:39 +0000
committerFlorin Coras <florin.coras@gmail.com>2019-10-11 20:05:52 +0000
commit4d62365ad69bd4c9e763712f89593e5c725a1ab7 (patch)
treefcf5818517a5d25d5ef816749c32f66b25ccbcbe /src/plugins/hs_apps/sapi/vpp_echo.c
parent6df2c7954126a316f86908526c3bb4d649f06597 (diff)
hsa: vpp_echo remove redundant unformat function
Type: refactor Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: Ifae49981458cd3ef9e2c79d64040b2076ad93869
Diffstat (limited to 'src/plugins/hs_apps/sapi/vpp_echo.c')
-rw-r--r--src/plugins/hs_apps/sapi/vpp_echo.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/hs_apps/sapi/vpp_echo.c b/src/plugins/hs_apps/sapi/vpp_echo.c
index 4392168aff2..7bc651e5a4a 100644
--- a/src/plugins/hs_apps/sapi/vpp_echo.c
+++ b/src/plugins/hs_apps/sapi/vpp_echo.c
@@ -950,9 +950,11 @@ echo_process_opts (int argc, char **argv)
em->fifo_size = tmp << 10;
else if (unformat (a, "prealloc-fifos %u", &em->prealloc_fifo_pairs))
;
- else if (unformat (a, "rx-buf %U", unformat_data, &em->rx_buf_size))
+ else
+ if (unformat (a, "rx-buf %U", unformat_data_size, &em->rx_buf_size))
;
- else if (unformat (a, "tx-buf %U", unformat_data, &em->tx_buf_size))
+ else
+ if (unformat (a, "tx-buf %U", unformat_data_size, &em->tx_buf_size))
;
else if (unformat (a, "mq-size %d", &em->evt_q_size))
;
@@ -981,9 +983,10 @@ echo_process_opts (int argc, char **argv)
;
else if (unformat (a, "TX=RX"))
em->data_source = ECHO_RX_DATA_SOURCE;
- else if (unformat (a, "TX=%U", unformat_data, &em->bytes_to_send))
+ else if (unformat (a, "TX=%U", unformat_data_size, &em->bytes_to_send))
;
- else if (unformat (a, "RX=%U", unformat_data, &em->bytes_to_receive))
+ else if (unformat (a, "RX=%U", unformat_data_size,
+ &em->bytes_to_receive))
;
else if (unformat (a, "rx-results-diff"))
em->rx_results_diff = 1;