From 7db0b741d8098ce26351e751bfeaade239c17a4c Mon Sep 17 00:00:00 2001 From: msaitoh Date: Wed, 7 Mar 2018 08:01:32 +0000 Subject: Don't increment que->req.ev_count in MSI-X interrupt because it's not reschedule. --- sys/dev/pci/ixgbe/ixgbe.c | 3 +-- sys/dev/pci/ixgbe/ixv.c | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/ixgbe/ixgbe.c b/sys/dev/pci/ixgbe/ixgbe.c index a6e526d0c40..127131cf721 100644 --- a/sys/dev/pci/ixgbe/ixgbe.c +++ b/sys/dev/pci/ixgbe/ixgbe.c @@ -1,4 +1,4 @@ -/* $NetBSD: ixgbe.c,v 1.129 2018/03/07 03:29:10 msaitoh Exp $ */ +/* $NetBSD: ixgbe.c,v 1.130 2018/03/07 08:01:32 msaitoh Exp $ */ /****************************************************************************** @@ -2527,7 +2527,6 @@ ixgbe_msix_que(void *arg) no_calc: if (more) { - que->req.ev_count++; if (adapter->txrx_use_workqueue) { /* * adapter->que_wq is bound to each CPU instead of diff --git a/sys/dev/pci/ixgbe/ixv.c b/sys/dev/pci/ixgbe/ixv.c index 4bcf269972a..78c69e89693 100644 --- a/sys/dev/pci/ixgbe/ixv.c +++ b/sys/dev/pci/ixgbe/ixv.c @@ -1,4 +1,4 @@ -/*$NetBSD: ixv.c,v 1.85 2018/03/07 03:29:10 msaitoh Exp $*/ +/*$NetBSD: ixv.c,v 1.86 2018/03/07 08:01:32 msaitoh Exp $*/ /****************************************************************************** @@ -959,10 +959,9 @@ ixv_msix_que(void *arg) rxr->packets = 0; no_calc: - if (more) { - que->req.ev_count++; + if (more) softint_schedule(que->que_si); - } else /* Re-enable this interrupt */ + else /* Re-enable this interrupt */ ixv_enable_queue(adapter, que->msix); return 1; -- cgit