aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRuslan Babayev <ruslan@babayev.com>2021-05-31 20:23:57 -0700
committerRuslan Babayev <ruslan@babayev.com>2021-05-31 20:23:57 -0700
commit90f7008dc05a7911e8f341f77dbf5250fe895997 (patch)
tree0a279bb479d4d2d13bcd17b908046c868dd894f1 /src
parent64d20e76b9108c9158b2b538cd2312d740f48103 (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')
-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;