Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 2021 00:47:59 GMT
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: fa82c3b5ce38 - stable/12 - ixgbe: clear all queues on VF reset
Message-ID:  <202109140047.18E0lxUU044941@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@tum.de>
AuthorDate: 2020-12-17 17:14:52 +0000
Commit:     Kevin Bowling <kbowling@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@tum.de>
    Acked-by: Haiyue Wang <haiyue.wang@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109140047.18E0lxUU044941>