git: fa82c3b5ce38 - stable/12 - ixgbe: clear all queues on VF reset
Kevin Bowling
kbowling at FreeBSD.org
Tue Sep 14 00:48:00 UTC 2021
The branch stable/12 has been updated by kbowling (ports committer):
URL: https://cgit.FreeBSD.org/src/commit/?id=fa82c3b5ce38a512c60c15f2d174ec979a933e37
commit fa82c3b5ce38a512c60c15f2d174ec979a933e37
Author: Simon Ellmann <simon.ellmann at tum.de>
AuthorDate: 2020-12-17 17:14:52 +0000
Commit: Kevin Bowling <kbowling at FreeBSD.org>
CommitDate: 2021-09-14 00:42:30 +0000
ixgbe: clear all queues on VF reset
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 at tum.de>
Acked-by: Haiyue Wang <haiyue.wang at intel.com>
Approved by: imp
Obtained from: DPDK (d2565b347915def3a0f3c68bde6824acf096a0e6)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31621
(cherry picked from commit 7165504a17682dc8c96d44c65319bf73c89f7f10)
---
sys/dev/ixgbe/ixgbe_vf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/ixgbe/ixgbe_vf.c b/sys/dev/ixgbe/ixgbe_vf.c
index 5dfd28f7bf4f..e692f12ebb0d 100644
--- a/sys/dev/ixgbe/ixgbe_vf.c
+++ b/sys/dev/ixgbe/ixgbe_vf.c
@@ -117,7 +117,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);
More information about the dev-commits-src-all
mailing list