DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] common/qat: fix overrun of qp config
@ 2021-11-12 12:01 Arek Kusztal
  2021-11-12 14:03 ` Power, Ciara
  0 siblings, 1 reply; 3+ messages in thread
From: Arek Kusztal @ 2021-11-12 12:01 UTC (permalink / raw)
  To: dev; +Cc: gakhil, roy.fan.zhang, ciara.power, Arek Kusztal, przemyslawx.zegan

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

diff --git a/drivers/common/qat/dev/qat_dev_gen1.c b/drivers/common/qat/dev/qat_dev_gen1.c
index 64d02e4817..c34ae5a51c 100644
--- a/drivers/common/qat/dev/qat_dev_gen1.c
+++ b/drivers/common/qat/dev/qat_dev_gen1.c
@@ -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++;
 	}
 
-- 
2.17.1


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

end of thread, other threads:[~2021-11-16  7:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 12:01 [PATCH] common/qat: fix overrun of qp config Arek Kusztal
2021-11-12 14:03 ` Power, Ciara
2021-11-16  7:31   ` Akhil Goyal

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