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 Increment rxr->packets correctly in ixgbe_...



details:   https://anonhg.NetBSD.org/src/rev/8a3d835f37d6
branches:  trunk
changeset: 829969:8a3d835f37d6
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Feb 20 07:30:57 2018 +0000

description:
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

diffstat:

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

diffs (17 lines):

diff -r 02fa7c7b13a9 -r 8a3d835f37d6 sys/dev/pci/ixgbe/ix_txrx.c
--- a/sys/dev/pci/ixgbe/ix_txrx.c       Tue Feb 20 07:24:37 2018 +0000
+++ b/sys/dev/pci/ixgbe/ix_txrx.c       Tue Feb 20 07:30:57 2018 +0000
@@ -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 @@
                        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;



Home | Main Index | Thread Index | Old Index