]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ipvs: correctly print the memory size of ip_vs_conn_tab
authorPengcheng Yang <yangpc@wangsu.com>
Tue, 12 Apr 2022 11:05:45 +0000 (19:05 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 19 Apr 2022 09:04:06 +0000 (11:04 +0200)
The memory size of ip_vs_conn_tab changed after we use hlist
instead of list.

Fixes: 4b8afc6ca522 ("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>
net/netfilter/ipvs/ip_vs_conn.c

index 2c467c422dc6343a296ccfff9097069440fd66cd..fb67f1ca2495b3e5e157d72608d0b6916a49bc61 100644 (file)
@@ -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));