Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp656391qtq; Thu, 10 Aug 2023 11:53:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExylg/p0PTllalYEAreO8EYnhKMnuOjhTG7c+mfv1bI7YeaI5cljUs+yK5FUMW6N1Q/6F5 X-Received: by 2002:a17:907:1def:b0:98e:1c4b:10bb with SMTP id og47-20020a1709071def00b0098e1c4b10bbmr2753258ejc.35.1691693610075; Thu, 10 Aug 2023 11:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691693610; cv=none; d=google.com; s=arc-20160816; b=B5G+8ywlAGsscpDOZDtDkF84ZnZgQgAqUbuIWTg7xeMw1/ssHMG6pPUqtoId39Jdcu LbKnIztt6tTDbMCT7HnCCShxiadrY+l4/1ISiXOyjlgEW4uUCAPw1LO4QXyNoGokti9t p2oZ38bkMyDlCfoG0v39jcNI67OZlqz1Ue1XzcUnuZgaSjQIPVRfuOLbgIJ0zyp7h09P gsC3oojpcvWCK+HcNEvXerH/PDDTL5gjlghR072iNfbMqDgRuWilxvpVjscZN9YhXme8 3J46Q/Y/UNFEaEDp7odmMM5MBMsRRbCU4c5spdWHfUel0YSA7yEym2FcQ8QNYxSZdKWR l/VQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=wpWgqElIrFMK3eVkTjedTS/8589BcIuu4Agms+YA0RE=; fh=ylS//sWg2KI0kr8Yt3MUB5Oj+4wDWKW7mPZp3NZcqfk=; b=Naz8/oVmaRUdCEFmW9CyDKan/XqAt3KGpei3WTUb64G0CNw7DRsOwljfFNIe7Tr4pm X3+m65dJBKfIlZtvlwMyhudwRI0YIi66HDs7yXJViavaXhvaBk4Sgj5thiOWWSdvjZ3d 58czKUqB+0BJh9lKzXXT2Lw3MSG/f25Y5gZFOy1T4yFzy8TcMsRSYdb2paIoY4RdxnQq t2fU87MJ1fPKqXmlT+QeZ9/FoaQEXEgaozCJKUUXM0flaD7toomlC5fKD1tvj9eeouRs 2RYhQ7AixNR/JUL1tIEWv4okP+iRj+u/ujmLy3TdAzSEp5gXl2JxuXpyoPZr9PVLKAhy szNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BF5r4c4g; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p24-20020a170906b21800b0099bcec1f1bbsi1943406ejz.182.2023.08.10.11.53.04; Thu, 10 Aug 2023 11:53:30 -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=@kernel.org header.s=k20201202 header.b=BF5r4c4g; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235558AbjHJR7q (ORCPT + 99 others); Thu, 10 Aug 2023 13:59:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbjHJR7p (ORCPT ); Thu, 10 Aug 2023 13:59:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE6ACE7E for ; Thu, 10 Aug 2023 10:59:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6CC9466535 for ; Thu, 10 Aug 2023 17:59:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64E22C433C7; Thu, 10 Aug 2023 17:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691690383; bh=zMZBAlIYuXts1JWarKGJe9B8Z9TCqF4od1Y1jiyno/w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BF5r4c4gIvQFQi5eUZ708LH7BFjr3WyT+hyC1REdcPPuTAW7OBAXNiU+0dZRyfWYY iGlOJcRModXhO9DfwIHXq139mTNMhZfD88YUCcuPd5lN3d6ZZ6h/cgHWpwyI6P5sPG opRssifeP7s6KjRaSh7ZQUbMBtpyDAWe+c2H/K9Pah/N7JUleVIzbyqlRmnBo72X+t iFwsfM/dlZIryHHh8/K/O+TEeatLGt72ib6xLEe4h7/cVfMbbWMENJWlMZ7Q7Wn0NU fQ93VyfrtlsLo62E4d0teVy0ONmlL+sLJvGX93xEVtNpoUcfpiyTQAWZCpnAQu7uts U3zEIQ0FlFkMQ== Date: Thu, 10 Aug 2023 10:59:42 -0700 From: Jakub Kicinski To: Alexander Lobakin Cc: Ratheesh Kannoth , , , , , , , , , , , Subject: Re: [PATCH net] octeontx2-pf: Set page pool size Message-ID: <20230810105942.2bf835a6@kernel.org> In-Reply-To: <5e481c98-bf82-283f-e826-82802a2bd7d6@intel.com> References: <20230810024422.1781312-1-rkannoth@marvell.com> <5e481c98-bf82-283f-e826-82802a2bd7d6@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 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 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 On Thu, 10 Aug 2023 19:09:21 +0200 Alexander Lobakin wrote: > And if the ring size is e.g. 256 or 512 or even 1024, why have Page Pool > with 2048 elements? Should be something like > > min(numptrs, OTX2_PAGE_POOL_MAX_SZ) And someone needs to tell me why the 2k was chosen as a value that uniquely fits this device but not other devices.. -- pw-bot: cr