Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi if_ipackets is incremented in can_input()...



details:   https://anonhg.NetBSD.org/src/rev/c0e6bbb30704
branches:  trunk
changeset: 966250:c0e6bbb30704
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Oct 21 08:00:58 2019 +0000

description:
if_ipackets is incremented in can_input(), so don't increment it in
sunxi_can_rx_intr to prevent double count. OK'd by bouyer@.

diffstat:

 sys/arch/arm/sunxi/sunxi_can.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r abfbbebf4135 -r c0e6bbb30704 sys/arch/arm/sunxi/sunxi_can.c
--- a/sys/arch/arm/sunxi/sunxi_can.c    Mon Oct 21 06:26:12 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_can.c    Mon Oct 21 08:00:58 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunxi_can.c,v 1.1 2018/03/07 20:55:31 bouyer Exp $     */
+/*     $NetBSD: sunxi_can.c,v 1.2 2019/10/21 08:00:58 msaitoh Exp $    */
 
 /*-
  * Copyright (c) 2017,2018 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: sunxi_can.c,v 1.1 2018/03/07 20:55:31 bouyer Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sunxi_can.c,v 1.2 2019/10/21 08:00:58 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -292,7 +292,6 @@
        }
        sunxi_can_write(sc, SUNXI_CAN_CMD_REG, SUNXI_CAN_CMD_REL_RX_BUF);
        m->m_len = m->m_pkthdr.len = CAN_MTU;
-       ifp->if_ipackets++;
        ifp->if_ibytes += m->m_len;
        m_set_rcvif(m, ifp);
        can_bpf_mtap(ifp, m, 1);



Home | Main Index | Thread Index | Old Index