The branch stable/13 has been updated by kbowling (ports committer):

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

commit df57aa230c7fe67c5c72217d8e19ed5aef72d626
Author:     Simon Ellmann <[email protected]>
AuthorDate: 2020-12-17 17:14:52 +0000
Commit:     Kevin Bowling <[email protected]>
CommitDate: 2021-09-14 00:35:47 +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 <[email protected]>
    Acked-by: Haiyue Wang <[email protected]>
    
    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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to