DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] cryptodev: increase default max nb queue pairs
@ 2023-01-04  7:30 Anoob Joseph
  2023-01-04 10:58 ` Zhang, Fan
  2023-01-10  6:41 ` Ruifeng Wang
  0 siblings, 2 replies; 4+ messages in thread
From: Anoob Joseph @ 2023-01-04  7:30 UTC (permalink / raw)
  To: Akhil Goyal, Ruifeng Wang, Gagandeep Singh, Hemant Agrawal,
	Kai Ji, Pablo de Lara, Matan Azrad, Zhangfei Gao, Fan Zhang
  Cc: Ashwin Sekhar T K, Jerin Jacob, dev

Increase default maximum number of queue pairs to 64. For sw crypto
PMDs, the number of queue pairs can be increased as required. The
default value (which is set to 8), prevents usage of sw cryptodev PMDs
with larger number of cores.

Application would be allowed to specify the number of queue pairs it
wishes to use. Only the upper bound is changed from 8 to 64.

Allow PMDs such as crypto_armv8 to run on larger number of cores.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
 lib/cryptodev/cryptodev_pmd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h
index 0020102eb7..913a8f3623 100644
--- a/lib/cryptodev/cryptodev_pmd.h
+++ b/lib/cryptodev/cryptodev_pmd.h
@@ -29,7 +29,7 @@ extern "C" {
 #include "rte_cryptodev.h"
 
 
-#define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS	8
+#define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS	64
 
 #define RTE_CRYPTODEV_PMD_NAME_ARG			("name")
 #define RTE_CRYPTODEV_PMD_MAX_NB_QP_ARG			("max_nb_queue_pairs")
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cryptodev: increase default max nb queue pairs
  2023-01-04  7:30 [PATCH] cryptodev: increase default max nb queue pairs Anoob Joseph
@ 2023-01-04 10:58 ` Zhang, Fan
  2023-01-10  6:41 ` Ruifeng Wang
  1 sibling, 0 replies; 4+ messages in thread
From: Zhang, Fan @ 2023-01-04 10:58 UTC (permalink / raw)
  To: Anoob Joseph, Akhil Goyal, Ruifeng Wang, Gagandeep Singh,
	Hemant Agrawal, Kai Ji, Pablo de Lara, Matan Azrad, Zhangfei Gao
  Cc: Ashwin Sekhar T K, Jerin Jacob, dev

On 1/4/2023 7:30 AM, Anoob Joseph wrote:
> Increase default maximum number of queue pairs to 64. For sw crypto
> PMDs, the number of queue pairs can be increased as required. The
> default value (which is set to 8), prevents usage of sw cryptodev PMDs
> with larger number of cores.
>
> Application would be allowed to specify the number of queue pairs it
> wishes to use. Only the upper bound is changed from 8 to 64.
>
> Allow PMDs such as crypto_armv8 to run on larger number of cores.
>
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> ---
>   lib/cryptodev/cryptodev_pmd.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h
> index 0020102eb7..913a8f3623 100644
> --- a/lib/cryptodev/cryptodev_pmd.h
> +++ b/lib/cryptodev/cryptodev_pmd.h
> @@ -29,7 +29,7 @@ extern "C" {
>   #include "rte_cryptodev.h"
>   
>   
> -#define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS	8
> +#define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS	64
>   
>   #define RTE_CRYPTODEV_PMD_NAME_ARG			("name")
>   #define RTE_CRYPTODEV_PMD_MAX_NB_QP_ARG			("max_nb_queue_pairs")
Acked-by: Fan Zhang <fanzhang.oss@gmail.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] cryptodev: increase default max nb queue pairs
  2023-01-04  7:30 [PATCH] cryptodev: increase default max nb queue pairs Anoob Joseph
  2023-01-04 10:58 ` Zhang, Fan
@ 2023-01-10  6:41 ` Ruifeng Wang
  2023-01-10  7:07   ` Anoob Joseph
  1 sibling, 1 reply; 4+ messages in thread
From: Ruifeng Wang @ 2023-01-10  6:41 UTC (permalink / raw)
  To: Anoob Joseph, Akhil Goyal, Gagandeep Singh, hemant.agrawal,
	Kai Ji, Pablo de Lara, Matan Azrad, Zhangfei Gao, Fan Zhang
  Cc: Ashwin Sekhar T K, jerinj, dev, nd

> -----Original Message-----
> From: Anoob Joseph <anoobj@marvell.com>
> Sent: Wednesday, January 4, 2023 3:30 PM
> To: Akhil Goyal <gakhil@marvell.com>; Ruifeng Wang <Ruifeng.Wang@arm.com>; Gagandeep Singh
> <g.singh@nxp.com>; hemant.agrawal@nxp.com; Kai Ji <kai.ji@intel.com>; Pablo de Lara
> <pablo.de.lara.guarch@intel.com>; Matan Azrad <matan@nvidia.com>; Zhangfei Gao
> <zhangfei.gao@linaro.org>; Fan Zhang <fanzhang.oss@gmail.com>
> Cc: Ashwin Sekhar T K <asekhar@marvell.com>; jerinj@marvell.com; dev@dpdk.org
> Subject: [PATCH] cryptodev: increase default max nb queue pairs
> 
> Increase default maximum number of queue pairs to 64. For sw crypto PMDs, the number of
> queue pairs can be increased as required. The default value (which is set to 8), prevents
> usage of sw cryptodev PMDs with larger number of cores.
> 
> Application would be allowed to specify the number of queue pairs it wishes to use. Only
> the upper bound is changed from 8 to 64.
> 
> Allow PMDs such as crypto_armv8 to run on larger number of cores.
> 
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> ---
>  lib/cryptodev/cryptodev_pmd.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h index
> 0020102eb7..913a8f3623 100644
> --- a/lib/cryptodev/cryptodev_pmd.h
> +++ b/lib/cryptodev/cryptodev_pmd.h
> @@ -29,7 +29,7 @@ extern "C" {
>  #include "rte_cryptodev.h"
> 
> 
> -#define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS	8
> +#define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS	64
> 
>  #define RTE_CRYPTODEV_PMD_NAME_ARG			("name")
>  #define RTE_CRYPTODEV_PMD_MAX_NB_QP_ARG			("max_nb_queue_pairs")

Crypto device has devargs "max_nb_queue_pairs" which can be used to change queue pairs limit at init time.
Then no need to increase the default value?

> --
> 2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] cryptodev: increase default max nb queue pairs
  2023-01-10  6:41 ` Ruifeng Wang
@ 2023-01-10  7:07   ` Anoob Joseph
  0 siblings, 0 replies; 4+ messages in thread
From: Anoob Joseph @ 2023-01-10  7:07 UTC (permalink / raw)
  To: Ruifeng Wang
  Cc: Ashwin Sekhar T K, Jerin Jacob Kollanukkaran, dev, nd,
	Akhil Goyal, Gagandeep Singh, hemant.agrawal, Kai Ji,
	Pablo de Lara, Matan Azrad, Zhangfei Gao, Fan Zhang

Hi Ruifeng,

> Crypto device has devargs "max_nb_queue_pairs" which can be used to change
> queue pairs limit at init time.
> Then no need to increase the default value?

Yes. Thanks for the pointer. This field would suffice for the issue that I'm trying to fix.

Thanks,
Anoob

> -----Original Message-----
> From: Ruifeng Wang <Ruifeng.Wang@arm.com>
> Sent: Tuesday, January 10, 2023 12:12 PM
> To: Anoob Joseph <anoobj@marvell.com>; Akhil Goyal <gakhil@marvell.com>;
> Gagandeep Singh <g.singh@nxp.com>; hemant.agrawal@nxp.com; Kai Ji
> <kai.ji@intel.com>; Pablo de Lara <pablo.de.lara.guarch@intel.com>; Matan
> Azrad <matan@nvidia.com>; Zhangfei Gao <zhangfei.gao@linaro.org>; Fan
> Zhang <fanzhang.oss@gmail.com>
> Cc: Ashwin Sekhar T K <asekhar@marvell.com>; Jerin Jacob Kollanukkaran
> <jerinj@marvell.com>; dev@dpdk.org; nd <nd@arm.com>
> Subject: [EXT] RE: [PATCH] cryptodev: increase default max nb queue pairs
> 
> External Email
> 
> ----------------------------------------------------------------------
> > -----Original Message-----
> > From: Anoob Joseph <anoobj@marvell.com>
> > Sent: Wednesday, January 4, 2023 3:30 PM
> > To: Akhil Goyal <gakhil@marvell.com>; Ruifeng Wang
> > <Ruifeng.Wang@arm.com>; Gagandeep Singh <g.singh@nxp.com>;
> > hemant.agrawal@nxp.com; Kai Ji <kai.ji@intel.com>; Pablo de Lara
> > <pablo.de.lara.guarch@intel.com>; Matan Azrad <matan@nvidia.com>;
> > Zhangfei Gao <zhangfei.gao@linaro.org>; Fan Zhang
> > <fanzhang.oss@gmail.com>
> > Cc: Ashwin Sekhar T K <asekhar@marvell.com>; jerinj@marvell.com;
> > dev@dpdk.org
> > Subject: [PATCH] cryptodev: increase default max nb queue pairs
> >
> > Increase default maximum number of queue pairs to 64. For sw crypto
> > PMDs, the number of queue pairs can be increased as required. The
> > default value (which is set to 8), prevents usage of sw cryptodev PMDs with
> larger number of cores.
> >
> > Application would be allowed to specify the number of queue pairs it
> > wishes to use. Only the upper bound is changed from 8 to 64.
> >
> > Allow PMDs such as crypto_armv8 to run on larger number of cores.
> >
> > Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> > ---
> >  lib/cryptodev/cryptodev_pmd.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/lib/cryptodev/cryptodev_pmd.h
> > b/lib/cryptodev/cryptodev_pmd.h index
> > 0020102eb7..913a8f3623 100644
> > --- a/lib/cryptodev/cryptodev_pmd.h
> > +++ b/lib/cryptodev/cryptodev_pmd.h
> > @@ -29,7 +29,7 @@ extern "C" {
> >  #include "rte_cryptodev.h"
> >
> >
> > -#define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS	8
> > +#define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS	64
> >
> >  #define RTE_CRYPTODEV_PMD_NAME_ARG			("name")
> >  #define RTE_CRYPTODEV_PMD_MAX_NB_QP_ARG
> 	("max_nb_queue_pairs")
> 
> Crypto device has devargs "max_nb_queue_pairs" which can be used to change
> queue pairs limit at init time.
> Then no need to increase the default value?
> 
> > --
> > 2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-10  7:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04  7:30 [PATCH] cryptodev: increase default max nb queue pairs Anoob Joseph
2023-01-04 10:58 ` Zhang, Fan
2023-01-10  6:41 ` Ruifeng Wang
2023-01-10  7:07   ` Anoob Joseph

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).