From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pengcheng Yang Subject: [PATCH nf,v2] ipvs: correctly print the memory size of ip_vs_conn_tab Date: Tue, 12 Apr 2022 19:05:45 +0800 Message-ID: <1649761545-1864-1-git-send-email-yangpc@wangsu.com> Return-path: List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Simon Horman , Julian Anastasov , lvs-devel@vger.kernel.org Cc: Pablo Neira Ayuso , Florian Westphal , Jozsef Kadlecsik , netfilter-devel@vger.kernel.org, Pengcheng Yang The memory size of ip_vs_conn_tab changed after we use hlist instead of list. Fixes: 731109e78415 ("ipvs: use hlist instead of list") Signed-off-by: Pengcheng Yang --- v2: use pointer dereference instead of struct types net/netfilter/ipvs/ip_vs_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c index 2c467c4..fb67f1c 100644 --- a/net/netfilter/ipvs/ip_vs_conn.c +++ b/net/netfilter/ipvs/ip_vs_conn.c @@ -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)); -- 1.8.3.1