summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Nikolaev <anikolaev@netgate.com>2021-02-17 14:45:40 +0500
committerDamjan Marion <dmarion@me.com>2021-04-01 13:06:27 +0000
commit74a4a70efaa4a3af998cae32ff3612ad7a7fa879 (patch)
tree9f0c384cacd58a7145000f1e8ead0596f518b938
parente4aa2f7fe8db24e0d61d009f30638bc0f1a7713c (diff)
ip: extend show cmd of ip reassembly configuration
Type: feature Add output of field maximum reassembly length with others ip reassembly configuration fields. This field can be configured via vpp API, but there was no output of this field in vpp cli. Output added for ipv4/ipv6 and full/shallow virtual nodes. Signed-off-by: Anton Nikolaev <anikolaev@netgate.com> Change-Id: Ibbd61aab26189d4a93d32e047d8f4e589fe9f8a5
-rw-r--r--src/vnet/ip/reass/ip4_full_reass.c4
-rw-r--r--src/vnet/ip/reass/ip4_sv_reass.c4
-rw-r--r--src/vnet/ip/reass/ip6_full_reass.c4
-rw-r--r--src/vnet/ip/reass/ip6_sv_reass.c4
4 files changed, 16 insertions, 0 deletions
diff --git a/src/vnet/ip/reass/ip4_full_reass.c b/src/vnet/ip/reass/ip4_full_reass.c
index 69d418e9d51..2bfbc381e1a 100644
--- a/src/vnet/ip/reass/ip4_full_reass.c
+++ b/src/vnet/ip/reass/ip4_full_reass.c
@@ -1718,6 +1718,10 @@ show_ip4_reass (vlib_main_t * vm,
"Maximum configured concurrent full IP4 reassemblies per worker-thread: %lu\n",
(long unsigned) rm->max_reass_n);
vlib_cli_output (vm,
+ "Maximum configured amount of fragments "
+ "per full IP4 reassembly: %lu\n",
+ (long unsigned) rm->max_reass_len);
+ vlib_cli_output (vm,
"Maximum configured full IP4 reassembly timeout: %lums\n",
(long unsigned) rm->timeout_ms);
vlib_cli_output (vm,
diff --git a/src/vnet/ip/reass/ip4_sv_reass.c b/src/vnet/ip/reass/ip4_sv_reass.c
index e9582638047..28ebc4d0dc0 100644
--- a/src/vnet/ip/reass/ip4_sv_reass.c
+++ b/src/vnet/ip/reass/ip4_sv_reass.c
@@ -1334,6 +1334,10 @@ show_ip4_reass (vlib_main_t * vm,
"Maximum configured concurrent shallow virtual IP4 reassemblies per worker-thread: %lu\n",
(long unsigned) rm->max_reass_n);
vlib_cli_output (vm,
+ "Maximum configured amount of fragments per shallow "
+ "virtual IP4 reassembly: %lu\n",
+ (long unsigned) rm->max_reass_len);
+ vlib_cli_output (vm,
"Maximum configured shallow virtual IP4 reassembly timeout: %lums\n",
(long unsigned) rm->timeout_ms);
vlib_cli_output (vm,
diff --git a/src/vnet/ip/reass/ip6_full_reass.c b/src/vnet/ip/reass/ip6_full_reass.c
index fe5c6376882..8403bc5198e 100644
--- a/src/vnet/ip/reass/ip6_full_reass.c
+++ b/src/vnet/ip/reass/ip6_full_reass.c
@@ -1687,6 +1687,10 @@ show_ip6_full_reass (vlib_main_t * vm, unformat_input_t * input,
"Maximum configured concurrent full IP6 reassemblies per worker-thread: %lu\n",
(long unsigned) rm->max_reass_n);
vlib_cli_output (vm,
+ "Maximum configured amount of fragments "
+ "per full IP6 reassembly: %lu\n",
+ (long unsigned) rm->max_reass_len);
+ vlib_cli_output (vm,
"Maximum configured full IP6 reassembly timeout: %lums\n",
(long unsigned) rm->timeout_ms);
vlib_cli_output (vm,
diff --git a/src/vnet/ip/reass/ip6_sv_reass.c b/src/vnet/ip/reass/ip6_sv_reass.c
index 201e5e9a466..e09173df5ec 100644
--- a/src/vnet/ip/reass/ip6_sv_reass.c
+++ b/src/vnet/ip/reass/ip6_sv_reass.c
@@ -1158,6 +1158,10 @@ show_ip6_sv_reass (vlib_main_t * vm, unformat_input_t * input,
"Maximum configured concurrent shallow virtual IP6 reassemblies per worker-thread: %lu\n",
(long unsigned) rm->max_reass_n);
vlib_cli_output (vm,
+ "Maximum configured amount of fragments per shallow "
+ "virtual IP6 reassembly: %lu\n",
+ (long unsigned) rm->max_reass_len);
+ vlib_cli_output (vm,
"Maximum configured shallow virtual IP6 reassembly timeout: %lums\n",
(long unsigned) rm->timeout_ms);
vlib_cli_output (vm,