summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorRuslan Babayev <ruslan@babayev.com>2021-05-31 20:23:57 -0700
committerAndrew Yourtchenko <ayourtch@gmail.com>2021-06-07 14:10:26 +0000
commitf1bd293ff209740e36aedf835ede3882eeac5a29 (patch)
treeff2bdfa1e48df6de061ed7b038f8732af18ece81 /src/plugins
parentb3e5909e800c9e5650ee1b95e65f48bfb6da9cb4 (diff)
nat: fix broken nat44-ed cli
snat_set_frame_queue_nelts has been replaced with nat44_ed_set_frame_queue_nelts. Type: fix Signed-off-by: Ruslan Babayev <ruslan@babayev.com> Change-Id: I8d970be71376fdbb2bfd383d4d5824a8def93bb3
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/nat/nat44-ed/nat44_ed.h9
-rw-r--r--src/plugins/nat/nat44-ed/nat44_ed_cli.c2
2 files changed, 1 insertions, 10 deletions
diff --git a/src/plugins/nat/nat44-ed/nat44_ed.h b/src/plugins/nat/nat44-ed/nat44_ed.h
index 91b3645254e..bbd5a148ed2 100644
--- a/src/plugins/nat/nat44-ed/nat44_ed.h
+++ b/src/plugins/nat/nat44-ed/nat44_ed.h
@@ -954,15 +954,6 @@ clib_error_t *nat44_api_hookup (vlib_main_t * vm);
int snat_set_workers (uword * bitmap);
/**
- * @brief Set NAT plugin number of frame queue elements
- *
- * @param frame_queue_nelts number of worker handoff frame queue elements
- *
- * @return 0 on success, non-zero value otherwise
- */
-int snat_set_frame_queue_nelts (u32 frame_queue_nelts);
-
-/**
* @brief Enable/disable NAT44 feature on the interface
*
* @param sw_if_index software index of the interface
diff --git a/src/plugins/nat/nat44-ed/nat44_ed_cli.c b/src/plugins/nat/nat44-ed/nat44_ed_cli.c
index 8ded7eebe7f..1d54f99d113 100644
--- a/src/plugins/nat/nat44-ed/nat44_ed_cli.c
+++ b/src/plugins/nat/nat44-ed/nat44_ed_cli.c
@@ -1545,7 +1545,7 @@ set_frame_queue_nelts_command_fn (vlib_main_t *vm, unformat_input_t *input,
error = clib_error_return (0, "frame_queue_nelts cannot be zero");
goto done;
}
- if (snat_set_frame_queue_nelts (frame_queue_nelts) != 0)
+ if (nat44_ed_set_frame_queue_nelts (frame_queue_nelts) != 0)
{
error = clib_error_return (0, "snat_set_frame_queue_nelts failed");
goto done;