From: Steven Zou <steven.zou@intel.com>
To: dev@dpdk.org
Cc: qi.z.zhang@intel.com, guang3.yang@intel.com,
Steven Zou <steven.zou@intel.com>
Subject: [PATCH] common/iavf: do not copy desc/buff in async mode
Date: Mon, 5 Sep 2022 09:42:06 +0800 [thread overview]
Message-ID: <20220905014206.14872-1-steven.zou@intel.com> (raw)
If cmd_details are defined or async flag is set,
don't copy the desc/buff back to temp.
Signed-off-by: Steven Zou <steven.zou@intel.com>
---
drivers/common/iavf/iavf_adminq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/common/iavf/iavf_adminq.c b/drivers/common/iavf/iavf_adminq.c
index 0bf5af0cbe..2e59820b3b 100644
--- a/drivers/common/iavf/iavf_adminq.c
+++ b/drivers/common/iavf/iavf_adminq.c
@@ -784,7 +784,8 @@ enum iavf_status iavf_asq_send_command(struct iavf_hw *hw,
}
/* if ready, copy the desc back to temp */
- if (iavf_asq_done(hw)) {
+ if (iavf_asq_done(hw) &&
+ !details->async && !details->postpone) {
iavf_memcpy(desc, desc_on_ring, sizeof(struct iavf_aq_desc),
IAVF_DMA_TO_NONDMA);
if (buff != NULL)
--
2.34.1
next reply other threads:[~2022-09-05 1:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-05 1:42 Steven Zou [this message]
2022-09-05 2:00 ` Zhang, Qi Z
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=20220905014206.14872-1-steven.zou@intel.com \
--to=steven.zou@intel.com \
--cc=dev@dpdk.org \
--cc=guang3.yang@intel.com \
--cc=qi.z.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).