common/qat: fix overrun of qp config
Checks
Commit Message
This commint fixes overrun of ring configuration
due to insufficient check.
Fixes: 4badfb0205f7 ("common/qat: fix queue pairs number")
Cc: przemyslawx.zegan@intel.com
Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
---
drivers/common/qat/dev/qat_dev_gen1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Arek,
>-----Original Message-----
>From: Kusztal, ArkadiuszX <arkadiuszx.kusztal@intel.com>
>Sent: Friday 12 November 2021 12:02
>To: dev@dpdk.org
>Cc: gakhil@marvell.com; Zhang, Roy Fan <roy.fan.zhang@intel.com>; Power,
>Ciara <ciara.power@intel.com>; Kusztal, ArkadiuszX
><arkadiuszx.kusztal@intel.com>; Zegan, PrzemyslawX
><przemyslawx.zegan@intel.com>
>Subject: [PATCH] common/qat: fix overrun of qp config
>
>This commint fixes overrun of ring configuration due to insufficient check.
Small typo here: commint -> commit
>
>Fixes: 4badfb0205f7 ("common/qat: fix queue pairs number")
>Cc: przemyslawx.zegan@intel.com
>
>Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
>---
Asides from that, the patch looks good to me.
Acked-by: Ciara Power <ciara.power@intel.com>
> >Subject: [PATCH] common/qat: fix overrun of qp config
> >
> >This commint fixes overrun of ring configuration due to insufficient check.
> Small typo here: commint -> commit
Fixed while merging.
>
> >
> >Fixes: 4badfb0205f7 ("common/qat: fix queue pairs number")
> >Cc: przemyslawx.zegan@intel.com
> >
> >Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
> >---
>
> Asides from that, the patch looks good to me.
> Acked-by: Ciara Power <ciara.power@intel.com>
Applied to dpdk-next-crypto
Cc:stable@dpdk.org
@@ -95,7 +95,7 @@ qat_qp_rings_per_service_gen1(struct qat_pci_device *qat_dev,
if (hw_qps == NULL)
continue;
- if (hw_qps->service_type == service)
+ if (hw_qps->service_type == service && hw_qps->tx_msg_size)
count++;
}