mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
ipvs: correctly print the memory size of ip_vs_conn_tab
[ Upstream commiteba1a872cb
] The memory size of ip_vs_conn_tab changed after we use hlist instead of list. Fixes:731109e784
("ipvs: use hlist instead of list") Signed-off-by: Pengcheng Yang <yangpc@wangsu.com> Acked-by: Julian Anastasov <ja@ssi.bg> Acked-by: Simon Horman <horms@verge.net.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
05a83f0b03
commit
223c5b579c
1 changed files with 1 additions and 1 deletions
|
@ -1432,7 +1432,7 @@ int __init ip_vs_conn_init(void)
|
||||||
pr_info("Connection hash table configured "
|
pr_info("Connection hash table configured "
|
||||||
"(size=%d, memory=%ldKbytes)\n",
|
"(size=%d, memory=%ldKbytes)\n",
|
||||||
ip_vs_conn_tab_size,
|
ip_vs_conn_tab_size,
|
||||||
(long)(ip_vs_conn_tab_size*sizeof(struct list_head))/1024);
|
(long)(ip_vs_conn_tab_size*sizeof(*ip_vs_conn_tab))/1024);
|
||||||
IP_VS_DBG(0, "Each connection entry needs %zd bytes at least\n",
|
IP_VS_DBG(0, "Each connection entry needs %zd bytes at least\n",
|
||||||
sizeof(struct ip_vs_conn));
|
sizeof(struct ip_vs_conn));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue