diff options
author | MathiasRaoul <mathias.raoul@gmail.com> | 2019-10-04 15:28:00 +0000 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-10-04 18:32:42 +0000 |
commit | 7028a0157e28066696fba7d9978f7ab474f4d4f8 (patch) | |
tree | 2c3cb1b4248124824dfe7c5aa851bc8384581a79 /src/plugins/hs_apps/sapi/vpp_echo_bapi.c | |
parent | 00078b991365db97edf919567ca8b169ffd9b3e4 (diff) |
hsa: make APP_OPTIONS_PREALLOC_FIFO_PAIRS configurable
-add prealloc_fifo_pairs member in echo_main_t
-new cli parameter in vpp_echo
Type: feature
Signed-off-by: MathiasRaoul <mathias.raoul@gmail.com>
Change-Id: I6bb1214ee93e06421cd0a3721420278c51cd59c4
Diffstat (limited to 'src/plugins/hs_apps/sapi/vpp_echo_bapi.c')
-rw-r--r-- | src/plugins/hs_apps/sapi/vpp_echo_bapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/hs_apps/sapi/vpp_echo_bapi.c b/src/plugins/hs_apps/sapi/vpp_echo_bapi.c index 1894b5de840..1bfcb366b25 100644 --- a/src/plugins/hs_apps/sapi/vpp_echo_bapi.c +++ b/src/plugins/hs_apps/sapi/vpp_echo_bapi.c @@ -39,7 +39,7 @@ echo_send_attach (echo_main_t * em) bmp->context = ntohl (0xfeedface); bmp->options[APP_OPTIONS_FLAGS] = APP_OPTIONS_FLAGS_ACCEPT_REDIRECT; bmp->options[APP_OPTIONS_FLAGS] |= APP_OPTIONS_FLAGS_ADD_SEGMENT; - bmp->options[APP_OPTIONS_PREALLOC_FIFO_PAIRS] = 16; + bmp->options[APP_OPTIONS_PREALLOC_FIFO_PAIRS] = em->prealloc_fifo_pairs; bmp->options[APP_OPTIONS_RX_FIFO_SIZE] = em->fifo_size; bmp->options[APP_OPTIONS_TX_FIFO_SIZE] = em->fifo_size; bmp->options[APP_OPTIONS_ADD_SEGMENT_SIZE] = 128 << 20; |