From: Simon Ellmann <simon.ellmann@tum.de>
To: Jeff Guo <jia.guo@intel.com>, Haiyue Wang <haiyue.wang@intel.com>
Cc: dev@dpdk.org, Simon Ellmann <simon.ellmann@tum.de>
Subject: [dpdk-dev] [PATCH] net/ixgbe: clear registers of all queues on VF reset
Date: Thu, 17 Dec 2020 18:14:52 +0100 [thread overview]
Message-ID: <20201217171452.24914-1-simon.ellmann@tum.de> (raw)
ixgbe devices support up to 8 Rx and Tx queues per virtual function.
Currently, the registers of only seven queues are set to default when
resetting a VF.
Signed-off-by: Simon Ellmann <simon.ellmann@tum.de>
---
drivers/net/ixgbe/base/ixgbe_vf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_vf.c b/drivers/net/ixgbe/base/ixgbe_vf.c
index 91a5775eb..5e3ae1b51 100644
--- a/drivers/net/ixgbe/base/ixgbe_vf.c
+++ b/drivers/net/ixgbe/base/ixgbe_vf.c
@@ -84,7 +84,7 @@ static void ixgbe_virt_clr_reg(struct ixgbe_hw *hw)
IXGBE_WRITE_REG(hw, IXGBE_VFPSRTYPE, 0);
- for (i = 0; i < 7; i++) {
+ for (i = 0; i < 8; i++) {
IXGBE_WRITE_REG(hw, IXGBE_VFRDH(i), 0);
IXGBE_WRITE_REG(hw, IXGBE_VFRDT(i), 0);
IXGBE_WRITE_REG(hw, IXGBE_VFRXDCTL(i), 0);
--
2.29.2
next reply other threads:[~2020-12-17 17:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 17:14 Simon Ellmann [this message]
2020-12-18 2:34 ` Wang, Haiyue
2020-12-23 10:17 ` Zhang, Qi Z
2021-01-04 15:56 ` Ferruh Yigit
2021-01-05 9:02 ` Simon Ellmann
2021-01-05 10:29 ` Ferruh Yigit
2021-01-05 12:52 ` Wang, Haiyue
2021-01-05 14:10 ` Ferruh Yigit
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=20201217171452.24914-1-simon.ellmann@tum.de \
--to=simon.ellmann@tum.de \
--cc=dev@dpdk.org \
--cc=haiyue.wang@intel.com \
--cc=jia.guo@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).