Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0AA4C05027 for ; Wed, 1 Feb 2023 13:44:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231905AbjBANo2 (ORCPT ); Wed, 1 Feb 2023 08:44:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231564AbjBANo0 (ORCPT ); Wed, 1 Feb 2023 08:44:26 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CCD74942A for ; Wed, 1 Feb 2023 05:44:24 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id gr7so26940704ejb.5 for ; Wed, 01 Feb 2023 05:44:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=asW5eFRDLXHELloHZttR3BTVlJuiJbmqB3xm7+kiUd4=; b=PuyLyhbaQlhUvf+w/J1ar1FqLVod/C3jU3jtAA9byr/v1yQeLV8Lb09x+R2pjDNv6a dXPNT4L5ox+4ziCEQ6XjAUB1IebZ+jOirdlcPh08k8QRagcbY6P9HEqwD1n0Mt1G9lRC Uo5VcfVavl+k2dvERd3YFbQzSXCQhSmJh6Fj9ImWG6AS7TqLlaKUMQawYrXcCWVO1Bji gbskVZ3CqG02Wza+BoN3Sr9uQpSLjBpwZLRyLjCOOLNvt2qnh55NkCc0AIAq8cZaQ1UZ /yl1w8O1EtbJCr/Hg99cOOP/ZWGJpS/7iGr+dVHqBiNQtPP56F9KL+QIrpTOLy+TTp4A lkLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=asW5eFRDLXHELloHZttR3BTVlJuiJbmqB3xm7+kiUd4=; b=2CSfUeYNmRezjrUhkYlju+pSDBLnfPmNECorLdHE+IkBlTwnrc1he7x42pyFiC1T1q 7kAF0SQuBwgXwjzUY9iKG/EW3lw8ri3cAth5R2t/rhCvkjeVDbdOKUDK8tT0qe0fzFno 5oZ9p8xCRQl5YWYXkJqArQsDuDO1/YCDVHFCHRiXHzMqk2R3vLEZv8OYlYpsZvW8LBef L0SaJBjPRSkXbL53FisOvOnjAlfUk/CMOvYPbO6ne5/23WdWduwLbLznN6JKiK2MrlYs n3/tGpfcRcz48GATd0pzaCAvb5OdxazfbgBoUJygDWtbrV85Djd1Z8GOIPO1K/ozwuMG vtyA== X-Gm-Message-State: AO0yUKV/nvKHX1gS2S/ze0II4e8A5JJrosMXey8J528imZmAg6ecLO35 vsBur3ki+FlUQlRHOK2IrJ8uzw== X-Google-Smtp-Source: AK7set9t21FQGrY3W3kzIuO4GG1ya+OKDDZ1egka2se57hr+Od2BhV1cCId99ypum9vJypivHR0qSg== X-Received: by 2002:a17:906:fc09:b0:88d:ba89:1854 with SMTP id ov9-20020a170906fc0900b0088dba891854mr1304826ejb.37.1675259062555; Wed, 01 Feb 2023 05:44:22 -0800 (PST) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id y9-20020aa7d509000000b004a2569f6ba0sm3722028edq.82.2023.02.01.05.44.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 05:44:21 -0800 (PST) Date: Wed, 1 Feb 2023 14:44:20 +0100 From: Jiri Pirko To: taoyuan_eddy@hotmail.com Cc: netdev@vger.kernel.org, Pravin B Shelar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , dev@openvswitch.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] net: openvswitch: reduce cpu_used_mask memory Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wed, Feb 01, 2023 at 02:24:39PM CET, taoyuan_eddy@hotmail.com wrote: >From: Eddy Tao > >'struct cpumask cpu_used_mask' is embedded in struct sw_flow. >However, its size is hardcoded to CONFIG_NR_CPUS bits, which can be >8192 by default, it costs memory and slows down ovs_flow_alloc. >This fix uses actual CPU number instead > >Signed-off-by: Eddy Tao Eddy, looks like you missed my second comment to v1. Could you please check again? Thanks!