ip: use main heap for mtrie, part 2 (remove args)

Type: improvement
Change-Id: I8c28c845c75657852f1e513e2832771fad6b90b7
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2020-09-21 14:23:30 +02:00
committed by Neale Ranns
parent e85aa4c46a
commit 2de5fc03ff
2 changed files with 0 additions and 32 deletions
-6
View File
@@ -164,12 +164,6 @@ typedef struct ip4_main_t
u8 pad[2];
} host_config;
/** Heapsize for the Mtries */
uword mtrie_heap_size;
/** Use hugetlb pages for the Mtries */
int mtrie_hugetlb;
/** ARP throttling */
throttle_t arp_throttle;
-26
View File
@@ -3087,32 +3087,6 @@ VLIB_CLI_COMMAND (set_ip_classify_command, static) =
};
/* *INDENT-ON* */
static clib_error_t *
ip4_config (vlib_main_t * vm, unformat_input_t * input)
{
ip4_main_t *im = &ip4_main;
uword heapsize = 0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "heap-size %U", unformat_memory_size, &heapsize))
;
else if (unformat (input, "mtrie-hugetlb %=", &im->mtrie_hugetlb, 1))
;
else
return clib_error_return (0,
"invalid heap-size parameter `%U'",
format_unformat_error, input);
}
im->mtrie_heap_size = heapsize;
return 0;
}
VLIB_EARLY_CONFIG_FUNCTION (ip4_config, "ip");
/*
* fd.io coding-style-patch-verification: ON
*