Skip to content

Commit

Permalink
ipvs: correctly print the memory size of ip_vs_conn_tab
Browse files Browse the repository at this point in the history
[ Upstream commit eba1a87 ]

The memory size of ip_vs_conn_tab changed after we use hlist
instead of list.

Fixes: 731109e ("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>
  • Loading branch information
Pengcheng Yang authored and gregkh committed May 9, 2022
1 parent 0618866 commit b9ecd29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/ipvs/ip_vs_conn.c
Expand Up @@ -1495,7 +1495,7 @@ int __init ip_vs_conn_init(void)
pr_info("Connection hash table configured "
"(size=%d, memory=%ldKbytes)\n",
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",
sizeof(struct ip_vs_conn));

Expand Down

0 comments on commit b9ecd29

Please sign in to comment.