From: Arek Kusztal <arkadiuszx.kusztal@intel.com>
To: dev@dpdk.org
Cc: gakhil@marvell.com, roy.fan.zhang@intel.com,
ciara.power@intel.com,
Arek Kusztal <arkadiuszx.kusztal@intel.com>,
przemyslawx.zegan@intel.com
Subject: [PATCH] common/qat: fix overrun of qp config
Date: Fri, 12 Nov 2021 12:01:56 +0000 [thread overview]
Message-ID: <20211112120156.12862-1-arkadiuszx.kusztal@intel.com> (raw)
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
next reply other threads:[~2021-11-12 12:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 12:01 Arek Kusztal [this message]
2021-11-12 14:03 ` Power, Ciara
2021-11-16 7:31 ` Akhil Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211112120156.12862-1-arkadiuszx.kusztal@intel.com \
--to=arkadiuszx.kusztal@intel.com \
--cc=ciara.power@intel.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=przemyslawx.zegan@intel.com \
--cc=roy.fan.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).