Message ID | 20230809021920.913324-1-rkannoth@marvell.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2539770vqr; Tue, 8 Aug 2023 20:30:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/SNl8SCloyNkrXd01hHE/GD7o4Y8OHJ8ldp3xX72H4c9Fsark63vAcsLiY0c6p+00QSKN X-Received: by 2002:a05:620a:f8f:b0:76c:be58:d770 with SMTP id b15-20020a05620a0f8f00b0076cbe58d770mr1437491qkn.78.1691551814503; Tue, 08 Aug 2023 20:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691551814; cv=none; d=google.com; s=arc-20160816; b=Zd0PDZuv/2RI4XnOAZkI/LpwyaNQnfJcU7kIIy4qulO0LkofQwdBXF6nenMzCC9sqc Il5jClRw3GKA40aHBguAxYuqWiO0a1HJVaJevEae1AQhYXRLZKpvIjCD1ZYyE9K/36sw UpIWXbD6hc704Wsm/ECud674q00ctTmFCs2bLJbe/LXtLxzYsBRR0T439hv6ixUAOoSo kJKkTA4LwGkTUBJD0BpLw1gC8o20K8LRzrumQsecCbwgz4lqInef49U8Sg3e7ChHmAPJ hz3HtG9gJy7pxycLZ1lU0qiN6bpbj9HQwNV9QHUbqOLf0SdEV/7eQNjHM6mmJmJ/ZkEb VZ7w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Duo3bRbVvb6/txE8EhkDQ9IknuBjLsomUlWEgOddVpM=; fh=6IaCV/IVd9SwOFzM69wzza8ga9+7BF4omwnEmzhAM2M=; b=Tl2jK+/JkICqEFI3pJ9VRCQOzBNUUjC5AIYLfQffGxknOspqTqzFHgMhNCBqRm/LN+ oZq3gypKvZxAL6abDjfEa2jOBA41tqRgV+aFuMZ1he/vB/Pm4jCnxSJncmD+lwN+pmvO K9WDyPnUP7Oesu62//VdYaRi31Yaxc614PSHG+7urt9LM3t5CQNfWhJIkmiNeM+KACNj uylbL7uh3tYR28rIwi8TReWQYXEJ3mgu0jtzXPp/kwbvdz6x8fzM/g3sJvty9ByOZ+Nn 3Orth47ktlyTzYLptds2gff+dkw+03qdVg1BBgemW6bx3Sh4utKbwXnAx3rVL2a4VlPI jO/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=NJysyXkr; 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=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e36-20020a631e24000000b00563fe2f03edsi8264285pge.93.2023.08.08.20.29.59; Tue, 08 Aug 2023 20:30:14 -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=@marvell.com header.s=pfpt0220 header.b=NJysyXkr; 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=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbjHICTt (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Tue, 8 Aug 2023 22:19:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjHICTs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Aug 2023 22:19:48 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009C81BD3; Tue, 8 Aug 2023 19:19:46 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 378Nnvv0008226; Tue, 8 Aug 2023 19:19:28 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Duo3bRbVvb6/txE8EhkDQ9IknuBjLsomUlWEgOddVpM=; b=NJysyXkrFzaIIQ/dbkmLujz3zrJrlipBPrOz/oNr9Zglz35p0H/+0/U7KljxD51F9EME ZtwBmFLGrYy13Xo8dLC/OuxK6QQhrwtt4DwPTpPUeILj9yHJwdH9fjF2kvudyKbTmx+f bWaJA55+nPNbYZt1KzxWVo8OY8egbkWA+kzIdrCwxEOKq8BYfoCdV2webHXcbOt6egA+ Eyc+CuXK4U/txoQQSIWD8QI5oqHWkDgs75cpGvHCkddAe2f3m2qzjHpQBbkZOSfPDa/u 5zS6WReC5Pl6NMbuGkUENSEicE8JsVIXEhSS2ky5X59W3/tfrwFTKo0iChTrbtryWMf3 2A== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3sbkntk304-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 08 Aug 2023 19:19:28 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 8 Aug 2023 19:19:26 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 8 Aug 2023 19:19:26 -0700 Received: from marvell-OptiPlex-7090.marvell.com (unknown [10.28.36.165]) by maili.marvell.com (Postfix) with ESMTP id 55D8A5B6929; Tue, 8 Aug 2023 19:19:22 -0700 (PDT) From: Ratheesh Kannoth <rkannoth@marvell.com> To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <hawk@kernel.org>, <alexander.duyck@gmail.com>, <ilias.apalodimas@linaro.org>, <linyunsheng@huawei.com>, Ratheesh Kannoth <rkannoth@marvell.com>, Alexander Lobakin <aleksander.lobakin@intel.com> Subject: [PATCH net-next] page_pool: Set page pool size. Date: Wed, 9 Aug 2023 07:49:20 +0530 Message-ID: <20230809021920.913324-1-rkannoth@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: SWsvK7huo-gMo5qfYeC52ab8k7UmSiF6 X-Proofpoint-ORIG-GUID: SWsvK7huo-gMo5qfYeC52ab8k7UmSiF6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-08_24,2023-08-08_01,2023-05-22_02 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773720635372882635 X-GMAIL-MSGID: 1773720635372882635 |
Series |
[net-next] page_pool: Set page pool size.
|
|
Commit Message
Ratheesh Kannoth
Aug. 9, 2023, 2:19 a.m. UTC
https://lore.kernel.org/netdev/
15d32b22-22b0-64e3-a49e-88d780c24616@kernel.org/T/
Suggested-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
---
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
> From: Ratheesh Kannoth <rkannoth@marvell.com> > Sent: Wednesday, August 9, 2023 7:49 AM > Subject: [PATCH net-next] page_pool: Set page pool size. Please ignore/abandon the patch. Will push a new patch to "net" as it is a fix in the driver. -Ratheesh
On 09/08/2023 04.19, Ratheesh Kannoth wrote: > https://lore.kernel.org/netdev/ > 15d32b22-22b0-64e3-a49e-88d780c24616@kernel.org/T/ > For the record I like this code change better than changing page_pool core code. I like and agree with Olek's (Alexander Lobakin) suggestion. But the commit message need to be improved as it is too thin. (And link is getting split in two lines for some reason) > Suggested-by: Alexander Lobakin <aleksander.lobakin@intel.com> > Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com> > --- > drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c > index 8336cea16aff..2986e238104e 100644 > --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c > +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c > @@ -1434,7 +1434,8 @@ int otx2_pool_init(struct otx2_nic *pfvf, u16 pool_id, > } > > pp_params.flags = PP_FLAG_PAGE_FRAG | PP_FLAG_DMA_MAP; > - pp_params.pool_size = numptrs; > +#define OTX2_PAGE_POOL_SIZE 2048 > + pp_params.pool_size = OTX2_PAGE_POOL_SIZE; > pp_params.nid = NUMA_NO_NODE; > pp_params.dev = pfvf->dev; > pp_params.dma_dir = DMA_FROM_DEVICE;
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c index 8336cea16aff..2986e238104e 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c @@ -1434,7 +1434,8 @@ int otx2_pool_init(struct otx2_nic *pfvf, u16 pool_id, } pp_params.flags = PP_FLAG_PAGE_FRAG | PP_FLAG_DMA_MAP; - pp_params.pool_size = numptrs; +#define OTX2_PAGE_POOL_SIZE 2048 + pp_params.pool_size = OTX2_PAGE_POOL_SIZE; pp_params.nid = NUMA_NO_NODE; pp_params.dev = pfvf->dev; pp_params.dma_dir = DMA_FROM_DEVICE;