* [PATCH net-next] page_pool: Set page pool size.
@ 2023-08-09 2:19 Ratheesh Kannoth
2023-08-09 7:04 ` Ratheesh Kannoth
2023-08-14 8:44 ` Jesper Dangaard Brouer
0 siblings, 2 replies; 3+ messages in thread
From: Ratheesh Kannoth @ 2023-08-09 2:19 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: davem, edumazet, kuba, pabeni, hawk, alexander.duyck,
ilias.apalodimas, linyunsheng, Ratheesh Kannoth,
Alexander Lobakin
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(-)
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;
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH net-next] page_pool: Set page pool size.
2023-08-09 2:19 [PATCH net-next] page_pool: Set page pool size Ratheesh Kannoth
@ 2023-08-09 7:04 ` Ratheesh Kannoth
2023-08-14 8:44 ` Jesper Dangaard Brouer
1 sibling, 0 replies; 3+ messages in thread
From: Ratheesh Kannoth @ 2023-08-09 7:04 UTC (permalink / raw)
To: Ratheesh Kannoth, 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,
Alexander Lobakin
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] page_pool: Set page pool size.
2023-08-09 2:19 [PATCH net-next] page_pool: Set page pool size Ratheesh Kannoth
2023-08-09 7:04 ` Ratheesh Kannoth
@ 2023-08-14 8:44 ` Jesper Dangaard Brouer
1 sibling, 0 replies; 3+ messages in thread
From: Jesper Dangaard Brouer @ 2023-08-14 8:44 UTC (permalink / raw)
To: Ratheesh Kannoth, netdev, linux-kernel
Cc: brouer, davem, edumazet, kuba, pabeni, hawk, alexander.duyck,
ilias.apalodimas, linyunsheng, Alexander Lobakin
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-14 8:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 2:19 [PATCH net-next] page_pool: Set page pool size Ratheesh Kannoth
2023-08-09 7:04 ` Ratheesh Kannoth
2023-08-14 8:44 ` Jesper Dangaard Brouer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).