Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15253288rwd; Sun, 25 Jun 2023 13:32:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JDc56reQtx35MNjJz78XIWA5m2kdf/S33dTo/j4PF92RcZHNZTYHMlEj5QjIHHtYpEAPe X-Received: by 2002:a17:902:f681:b0:1b0:577c:2cb with SMTP id l1-20020a170902f68100b001b0577c02cbmr7319574plg.25.1687725175862; Sun, 25 Jun 2023 13:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687725175; cv=none; d=google.com; s=arc-20160816; b=Oi5rQjPtnDAaXpAUgUOmLzkg9VQjqdGSJsqAlFusjIjDkQcpclwNy3aB67iytcmy5F PJiPQgVy+bDkx4Xn1xC1KVsE0PirJanXDyDlHBLBJY7Jyb79Jo6G2aq8J+Dd+ANJs0QB 9sVSv+8SdtAD+ciGG6zy9A5QWoP7owFLUcP4J1DBICMIby3wkEAt0hMjv+KeD8jkhpaf o+fzrmMuV1YyAKYPdF1gX2kshF2tVUNncXcu+5sEAVsKV7AnvG5laZp+XyPKR9c7/fSd /6izaJVWHqtdkLL4Rm+avxjhIF3JGamSuQsOmxAVYEYj0W1DD7uLz4GyGCW4Y+KjFHbD Xh1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=99Zy3Wa/tHoUx/okcXBe0djEuGdAxqRHAp5/pcQcgbo=; fh=KGnu7IdAsQJcpU/gpD7Y1ms7vrTIR0S3wmvWnAChhCw=; b=D8gqCcnwLoWgpuBh6WSo4/HTWE5N4YU9ksMxyxqUBs252k8SS9dhk49IFiDNpRua65 4q4lC4lhdrTCSuQM9u/tJwLhr2fge0NrU8Eexzv6G5nyFrfcqVA+dc3ElNVQJCDI/yzT Hj5vlKejC+xmQoYbaBX8uj8KHtiLqARFu+lHOANHmAqthuy7DC+vjM/k6+E5UXZhN4eB 1cnc84iuragc/kvenIT9ocwJ0dWa419XX+TRPclCDybHnnRAvvgGcdxf4VKALUBS9e3h 7Ou+pr/dh+BaLn5GYQedceMvy4ddb6Xp9+abH/x6yawghv+lEijlAyiES8Sky7sqrwVm EdLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=ahA6Jg46; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a170902d70400b001b06e17610fsi1833887ply.321.2023.06.25.13.32.42; Sun, 25 Jun 2023 13:32:55 -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=@wanadoo.fr header.s=t20230301 header.b=ahA6Jg46; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbjFYUO6 (ORCPT + 99 others); Sun, 25 Jun 2023 16:14:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjFYUO4 (ORCPT ); Sun, 25 Jun 2023 16:14:56 -0400 Received: from smtp.smtpout.orange.fr (smtp-27.smtpout.orange.fr [80.12.242.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E8F12A for ; Sun, 25 Jun 2023 13:14:54 -0700 (PDT) Received: from [192.168.1.18] ([86.243.2.178]) by smtp.orange.fr with ESMTPA id DW8Hql8IdYSjeDW8Hq54KJ; Sun, 25 Jun 2023 22:14:52 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1687724092; bh=99Zy3Wa/tHoUx/okcXBe0djEuGdAxqRHAp5/pcQcgbo=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=ahA6Jg46mNlm/+eOaIE9unvhul6T3L5VFkMdRe5rS4cSJcS9ViXR0/zBB6icUDT8Z bnEIAEGfz3VM6yCSNk5++YjQkVSikNbppFRqdIPaTKJMnOQJEXmwe+/u8YOf9q77oX DQFcysCT9RrzsMdyLElAL7FBifDdFyNUW6qtGTJkjZfdkzb3nmSlGZRA/W6+ANl8Tk JI2zCHBJexBlikkTwL3aMdu/z1DnkFosVv7yw56UtUDttQ7DAgusUVLET8PHqBinEn 7jzdgAqRysNCCIUJhUlvOim9Biv2RoLk4bq/lsbpNHPSZyh1J97aBriOQq00ONPf0x HSbwl7ZDPb3KQ== X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 25 Jun 2023 22:14:52 +0200 X-ME-IP: 86.243.2.178 Message-ID: Date: Sun, 25 Jun 2023 22:14:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 02/26] octeon_ep: use array_size To: Jakub Kicinski , Julia Lawall Cc: Veerasenareddy Burru , keescook@chromium.org, kernel-janitors@vger.kernel.org, Abhijit Ayarekar , "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net References: <20230623211457.102544-1-Julia.Lawall@inria.fr> <20230623211457.102544-3-Julia.Lawall@inria.fr> <20230624152826.10e3789b@kernel.org> Content-Language: fr From: Christophe JAILLET In-Reply-To: <20230624152826.10e3789b@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Le 25/06/2023 à 00:28, Jakub Kicinski a écrit : > On Fri, 23 Jun 2023 23:14:33 +0200 Julia Lawall wrote: >> - oq->buff_info = vzalloc(oq->max_count * OCTEP_OQ_RECVBUF_SIZE); >> + oq->buff_info = vzalloc(array_size(oq->max_count, OCTEP_OQ_RECVBUF_SIZE)); > > vcalloc seems to exist, is there a reason array_size() is preferred? Hi, just for your information, I've just sent [1]. CJ [1]: https://lore.kernel.org/all/3484e46180dd2cf05d993ff1a78b481bc2ad1f71.1687723931.git.christophe.jaillet@wanadoo.fr/