Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe The max number of queue(pair) is not 7 but...



details:   https://anonhg.NetBSD.org/src/rev/c7044dae3795
branches:  trunk
changeset: 1018057:c7044dae3795
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jan 20 06:53:17 2021 +0000

description:
The max number of queue(pair) is not 7 but 8. Inspired by DPDK.

diffstat:

 sys/dev/pci/ixgbe/ixgbe_vf.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r eee0570db320 -r c7044dae3795 sys/dev/pci/ixgbe/ixgbe_vf.c
--- a/sys/dev/pci/ixgbe/ixgbe_vf.c      Wed Jan 20 01:20:26 2021 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_vf.c      Wed Jan 20 06:53:17 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe_vf.c,v 1.25 2020/11/30 05:30:56 msaitoh Exp $ */
+/* $NetBSD: ixgbe_vf.c,v 1.26 2021/01/20 06:53:17 msaitoh Exp $ */
 
 /******************************************************************************
   SPDX-License-Identifier: BSD-3-Clause
@@ -121,7 +121,8 @@
 
        IXGBE_WRITE_REG(hw, IXGBE_VFPSRTYPE, 0);
 
-       for (i = 0; i < 7; i++) {
+       KASSERT(IXGBE_VF_MAX_TX_QUEUES == IXGBE_VF_MAX_RX_QUEUES);
+       for (i = 0; i < IXGBE_VF_MAX_TX_QUEUES; 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);



Home | Main Index | Thread Index | Old Index