Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/pci Fix typo in vmxnet3_legacy_intr().



details:   https://anonhg.NetBSD.org/src/rev/1feaa8de43fe
branches:  trunk
changeset: 965743:1feaa8de43fe
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Mon Sep 30 07:13:54 2019 +0000

description:
Fix typo in vmxnet3_legacy_intr().

That causes sysctl hw.vmx*.{rx,tx} effect inversely when vmx(4) uses
INTx or MSI.

diffstat:

 sys/arch/x86/pci/if_vmx.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 1bcb9a265adc -r 1feaa8de43fe sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Mon Sep 30 00:37:11 2019 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Mon Sep 30 07:13:54 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vmx.c,v 1.49 2019/08/30 05:03:32 knakahara Exp $    */
+/*     $NetBSD: if_vmx.c,v 1.50 2019/09/30 07:13:54 knakahara Exp $    */
 /*     $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $        */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.49 2019/08/30 05:03:32 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.50 2019/09/30 07:13:54 knakahara Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -2513,11 +2513,11 @@
                vmxnet3_evintr(sc);
 
        VMXNET3_RXQ_LOCK(rxq);
-       rxmore = vmxnet3_rxq_eof(rxq, txlimit);
+       rxmore = vmxnet3_rxq_eof(rxq, rxlimit);
        VMXNET3_RXQ_UNLOCK(rxq);
 
        VMXNET3_TXQ_LOCK(txq);
-       txmore = vmxnet3_txq_eof(txq, rxlimit);
+       txmore = vmxnet3_txq_eof(txq, txlimit);
        VMXNET3_TXQ_UNLOCK(txq);
 
        if (txmore || rxmore) {



Home | Main Index | Thread Index | Old Index