From c358d78c4126c3bd660d16583842ac41afc77a3e Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Mon, 26 Oct 2020 13:42:41 +0000 Subject: nat: bihash: fix buckets calc and remove mem param Calculate bihash buckets as n_elts / 2.5 rounded to closest pow2 per Damjan's recommendation. Remove memory configuration parameters because bihash init ignores them anyway as it resides in main heap now. Type: improvement Change-Id: I189f463f3c4640106cce4f12d3c5a62969276a82 Signed-off-by: Klement Sekera --- src/plugins/nat/test/test_nat.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/plugins/nat/test/test_nat.py') diff --git a/src/plugins/nat/test/test_nat.py b/src/plugins/nat/test/test_nat.py index 3b19b71f199..d635abf9825 100644 --- a/src/plugins/nat/test/test_nat.py +++ b/src/plugins/nat/test/test_nat.py @@ -1178,22 +1178,6 @@ class TestNATMisc(MethodHolder): self.vapi.nat44_plugin_enable_disable(enable=0) self.vapi.cli("clear logging") - def test_show_config(self): - """ NAT config translation memory """ - - nat_config = self.vapi.nat_show_config() - mem = nat_config.translation_memory_size - self.assertTrue(mem > 0) - self.logger.info("max translation memory: %d" % mem) - - def test_show_config_2(self): - """ NAT config2 translation memory """ - - nat_config = self.vapi.nat_show_config_2() - mem = nat_config.translation_memory_size - self.assertTrue(mem > 0) - self.logger.info("max translation memory: %d" % mem) - def test_show_max_translations(self): """ API test - max translations per thread """ nat_config = self.vapi.nat_show_config_2() -- cgit