From ee49ce9ce8936e7fbb0ed99da45133d8fc372ef2 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 24 Jun 2015 09:40:56 +0000 Subject: Increment if_ipackets in if_input(). Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@ --- sys/arch/sgi/dev/if_iec.c | 4 +--- sys/arch/sgi/dev/if_mec.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/arch/sgi/dev') diff --git a/sys/arch/sgi/dev/if_iec.c b/sys/arch/sgi/dev/if_iec.c index f9c7495ae78..6a66bf32e45 100644 --- a/sys/arch/sgi/dev/if_iec.c +++ b/sys/arch/sgi/dev/if_iec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iec.c,v 1.13 2015/03/11 22:14:43 mpi Exp $ */ +/* $OpenBSD: if_iec.c,v 1.14 2015/06/24 09:40:53 mpi Exp $ */ /* * Copyright (c) 2009 Miodrag Vallat. @@ -1302,8 +1302,6 @@ dropit: rxd->rxd_stat = 0; IEC_RXSTATSYNC(sc, i, BUS_DMASYNC_PREREAD); - ifp->if_ipackets++; - ml_enqueue(&ml, m); } diff --git a/sys/arch/sgi/dev/if_mec.c b/sys/arch/sgi/dev/if_mec.c index 33859bf96bc..1acf49eb7b4 100644 --- a/sys/arch/sgi/dev/if_mec.c +++ b/sys/arch/sgi/dev/if_mec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mec.c,v 1.29 2015/03/11 16:08:54 mpi Exp $ */ +/* $OpenBSD: if_mec.c,v 1.30 2015/06/24 09:40:53 mpi Exp $ */ /* $NetBSD: if_mec_mace.c,v 1.5 2004/08/01 06:36:36 tsutsui Exp $ */ /* @@ -1308,8 +1308,6 @@ mec_rxintr(struct mec_softc *sc, uint32_t stat) m->m_pkthdr.len = m->m_len = len - ETHER_CRC_LEN; - ifp->if_ipackets++; - ml_enqueue(&ml, m); } -- cgit v1.2.3