Skip to content

Commit 040431d

Browse files
committed
ipvs: correctly print the memory size of ip_vs_conn_tab
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2080138 Upstream Status: commit eba1a87 commit eba1a87 Author: Pengcheng Yang <yangpc@wangsu.com> Date: Tue Apr 12 19:05:45 2022 +0800 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> Signed-off-by: Florian Westphal <fwestpha@redhat.com>
1 parent 4f5eb29 commit 040431d

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)