Module Name: src Committed By: ozaki-r Date: Thu Oct 12 02:40:59 UTC 2017
Modified Files: src/sys/net: if_vlan.c Log Message: Set IFEF_START_MPSAFE by default Because vlan_start is already MP-safe, there is no reason to not do so. Acked by s-yamaguchi@IIJ To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/sys/net/if_vlan.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/net/if_vlan.c diff -u src/sys/net/if_vlan.c:1.102 src/sys/net/if_vlan.c:1.103 --- src/sys/net/if_vlan.c:1.102 Wed Oct 11 08:29:17 2017 +++ src/sys/net/if_vlan.c Thu Oct 12 02:40:59 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: if_vlan.c,v 1.102 2017/10/11 08:29:17 msaitoh Exp $ */ +/* $NetBSD: if_vlan.c,v 1.103 2017/10/12 02:40:59 ozaki-r Exp $ */ /*- * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc. @@ -78,11 +78,10 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.102 2017/10/11 08:29:17 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.103 2017/10/12 02:40:59 ozaki-r Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" -#include "opt_net_mpsafe.h" #endif #include <sys/param.h> @@ -123,10 +122,6 @@ __KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v #include "ioconf.h" -#ifdef NET_MPSAFE -#define VLAN_MPSAFE 1 -#endif - struct vlan_mc_entry { LIST_ENTRY(vlan_mc_entry) mc_entries; /* @@ -342,9 +337,7 @@ vlan_clone_create(struct if_clone *ifc, if_initname(ifp, ifc->ifc_name, unit); ifp->if_softc = ifv; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; -#ifdef VLAN_MPSAFE ifp->if_extflags = IFEF_START_MPSAFE; -#endif ifp->if_start = vlan_start; ifp->if_transmit = vlan_transmit; ifp->if_ioctl = vlan_ioctl; @@ -1193,10 +1186,6 @@ vlan_start(struct ifnet *ifp) struct psref psref; int error; -#ifndef NET_MPSAFE - KASSERT(KERNEL_LOCKED_P()); -#endif - mib = vlan_getref_linkmib(ifv, &psref); if (mib == NULL) return;