Module Name: src Committed By: ozaki-r Date: Fri Nov 17 07:37:12 UTC 2017
Modified Files: src/sys/net: bpf.c if.c if.h if_loop.c if_pppoe.c rtsock.c src/sys/net/npf: npf_os.c src/sys/netinet: if_arp.c igmp.c in.c ip_flow.c ip_input.c ip_output.c src/sys/netinet6: frag6.c in6.c ip6_flow.c ip6_input.c mld6.c nd6.c nd6_nbr.c src/sys/netipsec: ipsec_output.c Log Message: Provide macros for softnet_lock and KERNEL_LOCK hiding NET_MPSAFE switch It reduces C&P codes such as "#ifndef NET_MPSAFE KERNEL_LOCK(1, NULL); ..." scattered all over the source code and makes it easy to identify remaining KERNEL_LOCK and/or softnet_lock that are held even if NET_MPSAFE. No functional change To generate a diff of this commit: cvs rdiff -u -r1.218 -r1.219 src/sys/net/bpf.c cvs rdiff -u -r1.396 -r1.397 src/sys/net/if.c cvs rdiff -u -r1.242 -r1.243 src/sys/net/if.h cvs rdiff -u -r1.98 -r1.99 src/sys/net/if_loop.c cvs rdiff -u -r1.131 -r1.132 src/sys/net/if_pppoe.c cvs rdiff -u -r1.229 -r1.230 src/sys/net/rtsock.c cvs rdiff -u -r1.7 -r1.8 src/sys/net/npf/npf_os.c cvs rdiff -u -r1.254 -r1.255 src/sys/netinet/if_arp.c cvs rdiff -u -r1.64 -r1.65 src/sys/netinet/igmp.c cvs rdiff -u -r1.209 -r1.210 src/sys/netinet/in.c cvs rdiff -u -r1.80 -r1.81 src/sys/netinet/ip_flow.c cvs rdiff -u -r1.361 -r1.362 src/sys/netinet/ip_input.c cvs rdiff -u -r1.284 -r1.285 src/sys/netinet/ip_output.c cvs rdiff -u -r1.60 -r1.61 src/sys/netinet6/frag6.c cvs rdiff -u -r1.250 -r1.251 src/sys/netinet6/in6.c cvs rdiff -u -r1.34 -r1.35 src/sys/netinet6/ip6_flow.c cvs rdiff -u -r1.182 -r1.183 src/sys/netinet6/ip6_input.c cvs rdiff -u -r1.89 -r1.90 src/sys/netinet6/mld6.c cvs rdiff -u -r1.238 -r1.239 src/sys/netinet6/nd6.c cvs rdiff -u -r1.138 -r1.139 src/sys/netinet6/nd6_nbr.c cvs rdiff -u -r1.64 -r1.65 src/sys/netipsec/ipsec_output.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.