Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1890637iob; Thu, 5 May 2022 10:10:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5y1dW5iSoOxgtbkGmlPl1596pYH2lexvBMdLPlEGB/m4tL4d2Mgraa3GLMJdfwsIBHwzK X-Received: by 2002:a63:2bc4:0:b0:3ab:1d76:64db with SMTP id r187-20020a632bc4000000b003ab1d7664dbmr22293843pgr.508.1651770656876; Thu, 05 May 2022 10:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651770656; cv=none; d=google.com; s=arc-20160816; b=fy8eSfRgf+ZU2gviQR7jVF21waa0mrlCBDRH+/GWQzRNaqppXa3ZEAhHU+0mN/cUAF CAesq+htr3bAqQ4w48lmmUXGYcnZ1E9tsX/zDL8e6m39TpoAA+erT22FqLZZ7+M4f5qb 2hybAsLt84yQOD5GEd3bnaj78HUVvsC2oinC1XnG+vT+TTHbK44tBzqyhLT+6MAEhbKo IVZVOEr5X2gZsFLmw9+WhXiVp74aOK6MXw0bYQpokchgMxUMyx6bgAVIRcEyIHC6Mf+b kqNStU2wtCQLPXPPEXYXtI6eD0CTBtAOE07urTduI6W7HKUq0L8UsaZ7a9gekHwcPjhU A6Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FYb2qdhVD6GQdLxdfZXbHSVnupAetfyf6MaKqUe4X0I=; b=iZUDqCu0NKBPSdXuNpqn3SovrJvDJbSNp/opUeh4gUR8+gRwXo1WW7gZhRl99aejXO jMQXOBebqFhNqjAmRUiZpyluGqtZpqd9azSXE4hPz0FC61p2+1AX6cCI/GdhUwt5b2qS yoLAB4m7XsZfySg4/rwWrn2VFOMMhkS2qRJHApGQxtBsiSbwNE9hdNH3qjAKgBaWibwK 8zPKMZPp/yEZGphiNZ0LkH/YembOE0llLSnhg/buIrvexuxvwCP9w6w5rYxEY2eBdajG b+xDqP/8rMqY/Q0JsPQstfMmmKw8nSnPNcaSfdOaodrZZVXheVZlqrk8YuVWIYyRbZhv lxPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rdQmuL4s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020a170902759500b00153b2d16577si2065068pll.383.2022.05.05.10.10.40; Thu, 05 May 2022 10:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rdQmuL4s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356452AbiEDRRY (ORCPT + 99 others); Wed, 4 May 2022 13:17:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356058AbiEDREv (ORCPT ); Wed, 4 May 2022 13:04:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D00250072; Wed, 4 May 2022 09:53:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0439BB827A1; Wed, 4 May 2022 16:53:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0326C385AA; Wed, 4 May 2022 16:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683220; bh=1PxZCugPr4DxiBBU19KWct2wANpsU0yR63LGAuaYykk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rdQmuL4s92SZQew0SsoBI8hhW5cSf74djk1zYC3PJtbOiRUyY8ytdeT6z2w7YV6kS xI3khVrJXbwDq1uZdMnGBQ8zU2E3nJFVN1e8327XzlcRPJHsQsz15j4FngK2JM4ar4 22c8MhoGrNW69Tl1aTQzdciFqtoGAi6eSNpvekGE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pengcheng Yang , Julian Anastasov , Simon Horman , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 5.15 073/177] ipvs: correctly print the memory size of ip_vs_conn_tab Date: Wed, 4 May 2022 18:44:26 +0200 Message-Id: <20220504153059.611149812@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pengcheng Yang [ Upstream commit eba1a872cb73314280d5448d934935b23e30b7ca ] 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 Acked-by: Julian Anastasov Acked-by: Simon Horman Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- 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 2c467c422dc6..fb67f1ca2495 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)); -- 2.35.1