Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net vlan: get rid of unnecessary if_ipackets++ in vlan_i...
details: https://anonhg.NetBSD.org/src/rev/abfbbebf4135
branches: trunk
changeset: 966249:abfbbebf4135
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Oct 21 06:26:12 2019 +0000
description:
vlan: get rid of unnecessary if_ipackets++ in vlan_input
It's done by if_input() below now.
Pointed out by msaitoh@
diffstat:
sys/net/if_vlan.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 7cf97baa3b7a -r abfbbebf4135 sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Mon Oct 21 05:16:51 2019 +0000
+++ b/sys/net/if_vlan.c Mon Oct 21 06:26:12 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vlan.c,v 1.146 2019/08/23 02:33:15 msaitoh Exp $ */
+/* $NetBSD: if_vlan.c,v 1.147 2019/10/21 06:26:12 ozaki-r Exp $ */
/*
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.146 2019/08/23 02:33:15 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.147 2019/10/21 06:26:12 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1656,7 +1656,6 @@
}
m_set_rcvif(m, &ifv->ifv_if);
- ifv->ifv_if.if_ipackets++;
if (pfil_run_hooks(ifp->if_pfil, &m, ifp, PFIL_IN) != 0)
goto out;
Home |
Main Index |
Thread Index |
Old Index