nat: configurable handoff frame queue size 33/30933/4
authorElias Rudberg <elias.rudberg@bahnhof.net>
Tue, 26 Jan 2021 12:56:45 +0000 (13:56 +0100)
committerOle Tr�an <otroan@employees.org>
Fri, 5 Feb 2021 11:54:14 +0000 (11:54 +0000)
commite345ee5cb94cb28cac4ba62af67c2c540916a429
treef5653c0f78888281710869907b049720853d8ede
parent839dcc0fb7313638d9b8f52a9db81350dddfe461
nat: configurable handoff frame queue size

Make number of worker handoff frame queue elements configurable as
a set nat frame-queue-nelts command. The default value is 64 which
is the same value that was previously hard-coded. The idea is that
allowing larger values can be useful in some cases, to avoid
congestion drops. Also add nat_set_fq_options API support and a
corresponding test case.

Type: improvement

Change-Id: I5c321eb2d7997f76fac2703d9c4a5b2516375db3
Signed-off-by: Elias Rudberg <elias.rudberg@bahnhof.net>
src/plugins/nat/nat.c
src/plugins/nat/nat.h
src/plugins/nat/nat44-ei/nat44_ei.c
src/plugins/nat/nat44.api
src/plugins/nat/nat44_api.c
src/plugins/nat/nat44_cli.c
src/plugins/nat/test/test_nat44_ei.py