Module Name:    src
Committed By:   msaitoh
Date:           Wed Mar  7 08:01:32 UTC 2018

Modified Files:
        src/sys/dev/pci/ixgbe: ixgbe.c ixv.c

Log Message:
 Don't increment que->req.ev_count in MSI-X interrupt because it's not
reschedule.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.85 -r1.86 src/sys/dev/pci/ixgbe/ixv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ixgbe/ixgbe.c
diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.129 src/sys/dev/pci/ixgbe/ixgbe.c:1.130
--- src/sys/dev/pci/ixgbe/ixgbe.c:1.129	Wed Mar  7 03:29:10 2018
+++ src/sys/dev/pci/ixgbe/ixgbe.c	Wed Mar  7 08:01:32 2018
@@ -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

Index: src/sys/dev/pci/ixgbe/ixv.c
diff -u src/sys/dev/pci/ixgbe/ixv.c:1.85 src/sys/dev/pci/ixgbe/ixv.c:1.86
--- src/sys/dev/pci/ixgbe/ixv.c:1.85	Wed Mar  7 03:29:10 2018
+++ src/sys/dev/pci/ixgbe/ixv.c	Wed Mar  7 08:01:32 2018
@@ -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;

Reply via email to