Module Name:    src
Committed By:   msaitoh
Date:           Tue Feb 20 07:30:57 UTC 2018

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

Log Message:
 Increment rxr->packets correctly in ixgbe_rxeof() to calculate ITR value
of AIM (Auto Interrupt Moderation) correctly. See also ixgbe.c rev. 1.124.

XXX pullup-8


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/pci/ixgbe/ix_txrx.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/ix_txrx.c
diff -u src/sys/dev/pci/ixgbe/ix_txrx.c:1.30 src/sys/dev/pci/ixgbe/ix_txrx.c:1.31
--- src/sys/dev/pci/ixgbe/ix_txrx.c:1.30	Mon Dec  4 09:29:42 2017
+++ src/sys/dev/pci/ixgbe/ix_txrx.c	Tue Feb 20 07:30:57 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: ix_txrx.c,v 1.30 2017/12/04 09:29:42 msaitoh Exp $ */
+/* $NetBSD: ix_txrx.c,v 1.31 2018/02/20 07:30:57 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -1855,6 +1855,7 @@ ixgbe_rxeof(struct ix_queue *que)
 			mp->m_next = nbuf->buf;
 		} else { /* Sending this frame */
 			m_set_rcvif(sendmp, ifp);
+			++rxr->packets;
 			rxr->rx_packets.ev_count++;
 			/* capture data for AIM */
 			rxr->bytes += sendmp->m_pkthdr.len;

Reply via email to