diff options
author | Damjan Marion <damarion@cisco.com> | 2020-12-12 23:32:12 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-12-14 12:14:21 +0000 |
commit | 62c25abaa3e93be5815172d391295a6ab0390122 (patch) | |
tree | 3d252a33a032c8c3320f6b007b61b6ee29b161b8 /src/plugins/nat/nat44_cli.c | |
parent | dc01471be72b272922bf6c9ef9e6221162ab906a (diff) |
vppinfra: simpler and faster pool_foreach
- reduces number of instructions generated 4 times compared to old code
- adds pool_foreach2 which is more friendly to clang-format
Type: improvement
Change-Id: I51e9c7fb09655c60d883987dadf5b2666c12b3f7
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat44_cli.c')
-rw-r--r-- | src/plugins/nat/nat44_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat44_cli.c b/src/plugins/nat/nat44_cli.c index d9cfe32287d..29807649ff8 100644 --- a/src/plugins/nat/nat44_cli.c +++ b/src/plugins/nat/nat44_cli.c @@ -750,7 +750,7 @@ nat44_show_summary_command_fn (vlib_main_t * vm, unformat_input_t * input, u32 count = 0; u64 now = vlib_time_now (vm); - u64 sess_timeout_time; + u64 sess_timeout_time = 0; u32 udp_sessions = 0; u32 tcp_sessions = 0; |