Skip to content

Commit eba1a87

Browse files
ws-yangpcummakynes
authored andcommitted
ipvs: correctly print the memory size of ip_vs_conn_tab
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>
1 parent 4cf35a2 commit eba1a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/ipvs/ip_vs_conn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ int __init ip_vs_conn_init(void)
14951495
pr_info("Connection hash table configured "
14961496
"(size=%d, memory=%ldKbytes)\n",
14971497
ip_vs_conn_tab_size,
1498-
(long)(ip_vs_conn_tab_size*sizeof(struct list_head))/1024);
1498+
(long)(ip_vs_conn_tab_size*sizeof(*ip_vs_conn_tab))/1024);
14991499
IP_VS_DBG(0, "Each connection entry needs %zd bytes at least\n",
15001500
sizeof(struct ip_vs_conn));
15011501

0 commit comments

Comments
 (0)