Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys Pull up following revision(s) (requested by msaitoh i...
details: https://anonhg.NetBSD.org/src/rev/b6a20bb248b3
branches: netbsd-8
changeset: 460856:b6a20bb248b3
user: martin <martin%NetBSD.org@localhost>
date: Wed Nov 06 10:04:46 2019 +0000
description:
Pull up following revision(s) (requested by msaitoh in ticket #1427):
sys/arch/arm/broadcom/bcm53xx_eth.c: revision 1.39
sys/dev/pcmcia/if_xi.c: revision 1.91
sys/dev/ic/aic6915.c: revision 1.40
sys/dev/pci/if_tl.c: revision 1.117
sys/arch/arm/gemini/gemini_gmac.c: revision 1.18
sys/dev/ic/elinkxl.c: revision 1.133
sys/dev/pci/if_ste.c: revision 1.57
sys/dev/pci/if_alc.c: revision 1.43
sys/dev/pci/if_stge.c: revision 1.72
sys/dev/pci/if_ale.c: revision 1.34
sys/dev/pci/if_age.c: revision 1.62
sys/dev/pci/if_txp.c: revision 1.60
sys/dev/ic/i82557.c: revision 1.156
sys/dev/pci/if_vte.c: revision 1.27
sys/arch/powerpc/booke/dev/pq3etsec.c: revision 1.47
sys/arch/arm/gemini/if_gpn.c: revision 1.13
if_percpuq(9) and ether_input() automatically increment if_ipackets, so don't add number of
RX frames from device's statistics counter to if_ipackets to avoid double
count.
diffstat:
sys/arch/arm/broadcom/bcm53xx_eth.c | 4 +---
sys/arch/arm/gemini/gemini_gmac.c | 5 ++---
sys/arch/arm/gemini/if_gpn.c | 5 ++---
sys/arch/powerpc/booke/dev/pq3etsec.c | 6 ++----
sys/dev/ic/aic6915.c | 6 ++----
sys/dev/ic/elinkxl.c | 6 ++----
sys/dev/ic/i82557.c | 5 ++---
sys/dev/pci/if_age.c | 6 ++----
sys/dev/pci/if_alc.c | 4 +---
sys/dev/pci/if_ale.c | 6 ++----
sys/dev/pci/if_ste.c | 8 ++++----
sys/dev/pci/if_stge.c | 7 +++----
sys/dev/pci/if_tl.c | 5 ++---
sys/dev/pci/if_txp.c | 5 ++---
sys/dev/pci/if_vte.c | 5 ++---
sys/dev/pcmcia/if_xi.c | 5 ++---
16 files changed, 33 insertions(+), 55 deletions(-)
diffs (truncated from 413 to 300 lines):
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/arch/arm/broadcom/bcm53xx_eth.c
--- a/sys/arch/arm/broadcom/bcm53xx_eth.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/arch/arm/broadcom/bcm53xx_eth.c Wed Nov 06 10:04:46 2019 +0000
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.29.8.1 2017/12/10 10:10:23 snj Exp $");
+__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.29.8.2 2019/11/06 10:04:46 martin Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -1039,8 +1039,6 @@
}
m_set_rcvif(m, ifp);
- ifp->if_ibytes += m->m_pkthdr.len;
-
/*
* Let's give it to the network subsystm to deal with.
*/
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/arch/arm/gemini/gemini_gmac.c
--- a/sys/arch/arm/gemini/gemini_gmac.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/arch/arm/gemini/gemini_gmac.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gemini_gmac.c,v 1.13 2017/06/01 02:45:05 chs Exp $ */
+/* $NetBSD: gemini_gmac.c,v 1.13.2.1 2019/11/06 10:04:47 martin Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -49,7 +49,7 @@
#include <sys/gpio.h>
-__KERNEL_RCSID(0, "$NetBSD: gemini_gmac.c,v 1.13 2017/06/01 02:45:05 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gemini_gmac.c,v 1.13.2.1 2019/11/06 10:04:47 martin Exp $");
#define SWFREEQ_DESCS 256 /* one page worth */
#define HWFREEQ_DESCS 256 /* one page worth */
@@ -848,7 +848,6 @@
*/
m = hwq->hwq_rxmbuf;
m_set_rcvif(m, ifp); /* set receive interface */
- ifp->if_ibytes += m->m_pkthdr.len;
switch (DESC0_RXSTS_GET(d->d_desc0)) {
case DESC0_RXSTS_GOOD:
case DESC0_RXSTS_LONG:
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/arch/arm/gemini/if_gpn.c
--- a/sys/arch/arm/gemini/if_gpn.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/arch/arm/gemini/if_gpn.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gpn.c,v 1.7 2016/12/15 09:28:02 ozaki-r Exp $ */
+/* $NetBSD: if_gpn.c,v 1.7.8.1 2019/11/06 10:04:47 martin Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -32,7 +32,7 @@
#include "opt_gemini.h"
-__KERNEL_RCSID(0, "$NetBSD: if_gpn.c,v 1.7 2016/12/15 09:28:02 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gpn.c,v 1.7.8.1 2019/11/06 10:04:47 martin Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -300,7 +300,6 @@
sc->sc_rxmbuf = NULL;
m_set_rcvif(m, ifp);
KASSERT(((m->m_pkthdr.len + 63) >> 6) == gd->gd_pktlen64);
- ifp->if_ibytes += m->m_pkthdr.len;
#ifdef GPNDEBUG
printf("%s: rx len=%d crc=%#x\n", ifp->if_xname,
m->m_pkthdr.len, m_crc32_le(m));
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/arch/powerpc/booke/dev/pq3etsec.c
--- a/sys/arch/powerpc/booke/dev/pq3etsec.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/arch/powerpc/booke/dev/pq3etsec.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pq3etsec.c,v 1.29.8.2 2017/12/10 10:10:23 snj Exp $ */
+/* $NetBSD: pq3etsec.c,v 1.29.8.3 2019/11/06 10:04:47 martin Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -41,7 +41,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.29.8.2 2017/12/10 10:10:23 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.29.8.3 2019/11/06 10:04:47 martin Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -1603,8 +1603,6 @@
m->m_flags |= M_HASFCS;
m_set_rcvif(m, &sc->sc_if);
- ifp->if_ibytes += m->m_pkthdr.len;
-
/*
* Let's give it to the network subsystm to deal with.
*/
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/dev/ic/aic6915.c
--- a/sys/dev/ic/aic6915.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/dev/ic/aic6915.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aic6915.c,v 1.35 2017/05/23 02:19:14 ozaki-r Exp $ */
+/* $NetBSD: aic6915.c,v 1.35.2.1 2019/11/06 10:04:46 martin Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.35 2017/05/23 02:19:14 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.35.2.1 2019/11/06 10:04:46 martin Exp $");
#include <sys/param.h>
@@ -854,8 +854,6 @@
stats.TransmitAbortDueToExcessingDeferral +
stats.FramesLostDueToInternalTransmitErrors;
- ifp->if_ipackets += stats.ReceiveOKFrames;
-
ifp->if_ierrors += stats.ReceiveCRCErrors + stats.AlignmentErrors +
stats.ReceiveFramesTooLong + stats.ReceiveFramesTooShort +
stats.ReceiveFramesJabbersError +
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/dev/ic/elinkxl.c
--- a/sys/dev/ic/elinkxl.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/dev/ic/elinkxl.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elinkxl.c,v 1.121.6.1 2018/07/26 23:55:29 snj Exp $ */
+/* $NetBSD: elinkxl.c,v 1.121.6.2 2019/11/06 10:04:46 martin Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.121.6.1 2018/07/26 23:55:29 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.121.6.2 2019/11/06 10:04:46 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1483,8 +1483,6 @@
GO_WINDOW(6);
upperok = bus_space_read_1(iot, ioh, UPPER_FRAMES_OK);
- ifp->if_ipackets += bus_space_read_1(iot, ioh, RX_FRAMES_OK);
- ifp->if_ipackets += (upperok & 0x03) << 8;
ifp->if_opackets += bus_space_read_1(iot, ioh, TX_FRAMES_OK);
ifp->if_opackets += (upperok & 0x30) << 4;
ifp->if_ierrors += bus_space_read_1(iot, ioh, RX_OVERRUNS);
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/dev/ic/i82557.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i82557.c,v 1.147.6.1 2017/10/24 08:38:59 snj Exp $ */
+/* $NetBSD: i82557.c,v 1.147.6.2 2019/11/06 10:04:46 martin Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.147.6.1 2017/10/24 08:38:59 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.147.6.2 2019/11/06 10:04:46 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1475,7 +1475,6 @@
ifp->if_opackets += le32toh(sp->tx_good);
ifp->if_collisions += le32toh(sp->tx_total_collisions);
if (sp->rx_good) {
- ifp->if_ipackets += le32toh(sp->rx_good);
sc->sc_rxidle = 0;
} else if (sc->sc_flags & FXPF_RECV_WORKAROUND) {
sc->sc_rxidle++;
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/dev/pci/if_age.c
--- a/sys/dev/pci/if_age.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/dev/pci/if_age.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_age.c,v 1.50.8.1 2017/10/24 08:38:59 snj Exp $ */
+/* $NetBSD: if_age.c,v 1.50.8.2 2019/11/06 10:04:47 martin Exp $ */
/* $OpenBSD: if_age.c,v 1.1 2009/01/16 05:00:34 kevlo Exp $ */
/*-
@@ -31,7 +31,7 @@
/* Driver for Attansic Technology Corp. L1 Gigabit Ethernet. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.50.8.1 2017/10/24 08:38:59 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.50.8.2 2019/11/06 10:04:47 martin Exp $");
#include "vlan.h"
@@ -2042,8 +2042,6 @@
smb->tx_late_colls + smb->tx_underrun +
smb->tx_pkts_truncated;
- ifp->if_ipackets += smb->rx_frames;
-
ifp->if_ierrors += smb->rx_crcerrs + smb->rx_lenerrs +
smb->rx_runts + smb->rx_pkts_truncated +
smb->rx_fifo_oflows + smb->rx_desc_oflows +
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/dev/pci/if_alc.c
--- a/sys/dev/pci/if_alc.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/dev/pci/if_alc.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_alc.c,v 1.24.8.3 2019/05/14 11:43:23 martin Exp $ */
+/* $NetBSD: if_alc.c,v 1.24.8.4 2019/11/06 10:04:47 martin Exp $ */
/* $OpenBSD: if_alc.c,v 1.1 2009/08/08 09:31:13 kevlo Exp $ */
/*-
* Copyright (c) 2009, Pyun YongHyeon <yongari%FreeBSD.org@localhost>
@@ -2239,8 +2239,6 @@
ifp->if_oerrors += smb->tx_late_colls + smb->tx_excess_colls +
smb->tx_underrun + smb->tx_pkts_truncated;
- ifp->if_ipackets += smb->rx_frames;
-
ifp->if_ierrors += smb->rx_crcerrs + smb->rx_lenerrs +
smb->rx_runts + smb->rx_pkts_truncated +
smb->rx_fifo_oflows + smb->rx_rrs_errs +
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/dev/pci/if_ale.c
--- a/sys/dev/pci/if_ale.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/dev/pci/if_ale.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ale.c,v 1.22.2.1 2017/10/24 08:38:59 snj Exp $ */
+/* $NetBSD: if_ale.c,v 1.22.2.2 2019/11/06 10:04:47 martin Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari%FreeBSD.org@localhost>
@@ -32,7 +32,7 @@
/* Driver for Atheros AR8121/AR8113/AR8114 PCIe Ethernet. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.22.2.1 2017/10/24 08:38:59 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.22.2.2 2019/11/06 10:04:47 martin Exp $");
#include "vlan.h"
@@ -1267,8 +1267,6 @@
ifp->if_oerrors += smb->tx_abort + smb->tx_late_colls +
smb->tx_underrun;
- ifp->if_ipackets += smb->rx_frames;
-
ifp->if_ierrors += smb->rx_crcerrs + smb->rx_lenerrs +
smb->rx_runts + smb->rx_pkts_truncated +
smb->rx_fifo_oflows + smb->rx_rrs_errs +
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/dev/pci/if_ste.c
--- a/sys/dev/pci/if_ste.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/dev/pci/if_ste.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ste.c,v 1.50 2016/12/15 09:28:05 ozaki-r Exp $ */
+/* $NetBSD: if_ste.c,v 1.50.8.1 2019/11/06 10:04:47 martin Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.50 2016/12/15 09:28:05 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.50.8.1 2019/11/06 10:04:47 martin Exp $");
#include <sys/param.h>
@@ -1096,8 +1096,8 @@
ifp->if_opackets +=
(u_int) bus_space_read_2(st, sh, STE_FramesTransmittedOK);
- ifp->if_ipackets +=
- (u_int) bus_space_read_2(st, sh, STE_FramesReceivedOK);
+
+ (u_int) bus_space_read_2(st, sh, STE_FramesReceivedOK);
ifp->if_collisions +=
(u_int) bus_space_read_1(st, sh, STE_LateCollisions) +
diff -r 723e8c6c1ce4 -r b6a20bb248b3 sys/dev/pci/if_stge.c
--- a/sys/dev/pci/if_stge.c Wed Nov 06 09:55:15 2019 +0000
+++ b/sys/dev/pci/if_stge.c Wed Nov 06 10:04:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_stge.c,v 1.62.8.1 2017/10/24 08:38:59 snj Exp $ */
+/* $NetBSD: if_stge.c,v 1.62.8.2 2019/11/06 10:04:47 martin Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.62.8.1 2017/10/24 08:38:59 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.62.8.2 2019/11/06 10:04:47 martin Exp $");
#include <sys/param.h>
@@ -1417,8 +1417,7 @@
Home |
Main Index |
Thread Index |
Old Index