Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix typo (s/txr_opackets/txr_obytes/)



details:   https://anonhg.NetBSD.org/src/rev/5d4fcc636844
branches:  trunk
changeset: 968400:5d4fcc636844
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Wed Jan 15 08:25:01 2020 +0000

description:
Fix typo (s/txr_opackets/txr_obytes/)

pointed out by ryo@n.o, thanks.

diffstat:

 sys/dev/pci/if_ixl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 4f75071daa89 -r 5d4fcc636844 sys/dev/pci/if_ixl.c
--- a/sys/dev/pci/if_ixl.c      Wed Jan 15 08:21:00 2020 +0000
+++ b/sys/dev/pci/if_ixl.c      Wed Jan 15 08:25:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ixl.c,v 1.19 2020/01/09 08:54:05 yamaguchi Exp $    */
+/*     $NetBSD: if_ixl.c,v 1.20 2020/01/15 08:25:01 yamaguchi Exp $    */
 
 /*
  * Copyright (c) 2013-2015, Intel Corporation
@@ -1787,11 +1787,11 @@
 
                        mutex_enter(&txr->txr_lock);
                        ifp->if_opackets += txr->txr_opackets;
-                       ifp->if_obytes += txr->txr_opackets;
+                       ifp->if_obytes += txr->txr_obytes;
                        ifp->if_omcasts += txr->txr_omcasts;
                        if (cmd == SIOCZIFDATA) {
                                txr->txr_opackets = 0;
-                               txr->txr_opackets = 0;
+                               txr->txr_obytes = 0;
                                txr->txr_omcasts = 0;
                        }
                        mutex_exit(&txr->txr_lock);



Home | Main Index | Thread Index | Old Index