git: 7165504a1768 - main - ixgbe: clear all queues on VF reset

Kevin Bowling kbowling at FreeBSD.org
Tue Sep 7 04:45:50 UTC 2021


The branch main has been updated by kbowling (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=7165504a17682dc8c96d44c65319bf73c89f7f10

commit 7165504a17682dc8c96d44c65319bf73c89f7f10
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-07 02:22:11 +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
---
 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