Module Name: src
Committed By: yamaguchi
Date: Wed Jan 15 08:25:02 UTC 2020
Modified Files:
src/sys/dev/pci: if_ixl.c
Log Message:
Fix typo (s/txr_opackets/txr_obytes/)
pointed out by [email protected], thanks.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/pci/if_ixl.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/if_ixl.c
diff -u src/sys/dev/pci/if_ixl.c:1.19 src/sys/dev/pci/if_ixl.c:1.20
--- src/sys/dev/pci/if_ixl.c:1.19 Thu Jan 9 08:54:05 2020
+++ src/sys/dev/pci/if_ixl.c Wed Jan 15 08:25:01 2020
@@ -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 @@ ixl_ioctl(struct ifnet *ifp, u_long cmd,
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);