summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-07-14 21:49:24 +0000
committerrwatson <rwatson@FreeBSD.org>2007-07-14 21:49:24 +0000
commitea4d9ac0d1f35d1dc3dfd0333fca52e6f92ec683 (patch)
tree4aec3325f92defda29d478c1dd870656056e3c0a /sys
parent81f7b063ece187dd48e800e82efc3cc68af13eda (diff)
downloadFreeBSD-src-ea4d9ac0d1f35d1dc3dfd0333fca52e6f92ec683.zip
FreeBSD-src-ea4d9ac0d1f35d1dc3dfd0333fca52e6f92ec683.tar.gz
Disconnect netatm from the build as it is not MPSAFE and relies on
NET_NEEDS_GIANT, which will shortly be removed. This is done in a away that it may be easily reattached to the build before 7.1 if appropriate locking is added. Specifics: - Don't install netatm include files - Disconnect netatm command line management tools - Don't build libatm - Don't include ATM parts in rescue or sysinstall - Don't install sample configuration files and documents - Don't build kernel support as a module or in NOTES - Don't build netgraph wrapper nodes for netatm This removes the last remaining consumer of NET_NEEDS_GIANT. Reviewed by: harti Discussed with: bz, bms Approved by: re (kensmith)
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/NOTES16
-rw-r--r--sys/conf/files202
-rw-r--r--sys/conf/options12
-rw-r--r--sys/modules/Makefile13
-rw-r--r--sys/modules/netgraph/atm/Makefile4
-rw-r--r--sys/netatm/atm_proto.c2
6 files changed, 132 insertions, 117 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 85577bc..0adb769 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -891,6 +891,8 @@ options ZERO_COPY_SOCKETS
#
# ATM (HARP version) options
#
+# XXX: These have been disabled in FreeBSD 7.0 as they are not MPSAFE.
+#
# ATM_CORE includes the base ATM functionality code. This must be included
# for ATM support.
#
@@ -909,14 +911,14 @@ options ZERO_COPY_SOCKETS
#
# The `harp' pseudo-driver makes all NATM interface drivers available to HARP.
#
-options ATM_CORE #core ATM protocol family
-options ATM_IP #IP over ATM support
-options ATM_SIGPVC #SIGPVC signalling manager
-options ATM_SPANS #SPANS signalling manager
-options ATM_UNI #UNI signalling manager
+#options ATM_CORE #core ATM protocol family
+#options ATM_IP #IP over ATM support
+#options ATM_SIGPVC #SIGPVC signalling manager
+#options ATM_SPANS #SPANS signalling manager
+#options ATM_UNI #UNI signalling manager
-device hfa #FORE PCA-200E ATM PCI
-device harp #Pseudo-interface for NATM
+#device hfa #FORE PCA-200E ATM PCI
+#device harp #Pseudo-interface for NATM
#####################################################################
diff --git a/sys/conf/files b/sys/conf/files
index 8d81bae..4538dbd 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -659,28 +659,28 @@ dev/flash/at45d.c optional at45d
dev/fxp/if_fxp.c optional fxp
dev/gem/if_gem.c optional gem
dev/gem/if_gem_pci.c optional gem pci
-dev/harp/if_harp.c optional harp pci
+#dev/harp/if_harp.c optional harp pci
dev/hatm/if_hatm.c optional hatm pci
dev/hatm/if_hatm_intr.c optional hatm pci
dev/hatm/if_hatm_ioctl.c optional hatm pci
dev/hatm/if_hatm_rx.c optional hatm pci
dev/hatm/if_hatm_tx.c optional hatm pci
-dev/hfa/fore_buffer.c optional hfa
-dev/hfa/fore_command.c optional hfa
-dev/hfa/fore_globals.c optional hfa
-dev/hfa/fore_if.c optional hfa
-dev/hfa/fore_init.c optional hfa
-dev/hfa/fore_intr.c optional hfa
-dev/hfa/fore_output.c optional hfa
-dev/hfa/fore_receive.c optional hfa
-dev/hfa/fore_stats.c optional hfa
-dev/hfa/fore_timer.c optional hfa
-dev/hfa/fore_transmit.c optional hfa
-dev/hfa/fore_vcm.c optional hfa
-#dev/hfa/hfa_eisa.c optional hfa eisa
-dev/hfa/hfa_freebsd.c optional hfa
-dev/hfa/hfa_pci.c optional hfa pci
-#dev/hfa/hfa_sbus.c optional hfa sbus
+#dev/hfa/fore_buffer.c optional hfa
+#dev/hfa/fore_command.c optional hfa
+#dev/hfa/fore_globals.c optional hfa
+#dev/hfa/fore_if.c optional hfa
+#dev/hfa/fore_init.c optional hfa
+#dev/hfa/fore_intr.c optional hfa
+#dev/hfa/fore_output.c optional hfa
+#dev/hfa/fore_receive.c optional hfa
+#dev/hfa/fore_stats.c optional hfa
+#dev/hfa/fore_timer.c optional hfa
+#dev/hfa/fore_transmit.c optional hfa
+#dev/hfa/fore_vcm.c optional hfa
+##dev/hfa/hfa_eisa.c optional hfa eisa
+#dev/hfa/hfa_freebsd.c optional hfa
+#dev/hfa/hfa_pci.c optional hfa pci
+##dev/hfa/hfa_sbus.c optional hfa sbus
dev/hifn/hifn7751.c optional hifn
dev/hme/if_hme.c optional hme
dev/hme/if_hme_pci.c optional hme pci
@@ -1660,88 +1660,92 @@ netatalk/ddp_input.c optional netatalk
netatalk/ddp_output.c optional netatalk
netatalk/ddp_pcb.c optional netatalk
netatalk/ddp_usrreq.c optional netatalk
-netatm/atm_aal5.c optional atm_core
-netatm/atm_cm.c optional atm_core
-netatm/atm_device.c optional atm_core
-netatm/atm_if.c optional atm_core
-netatm/atm_proto.c optional atm_core
-netatm/atm_signal.c optional atm_core
-netatm/atm_socket.c optional atm_core
-netatm/atm_subr.c optional atm_core
-netatm/atm_usrreq.c optional atm_core
-netatm/ipatm/ipatm_event.c optional atm_ip atm_core
-netatm/ipatm/ipatm_if.c optional atm_ip atm_core
-netatm/ipatm/ipatm_input.c optional atm_ip atm_core
-netatm/ipatm/ipatm_load.c optional atm_ip atm_core
-netatm/ipatm/ipatm_output.c optional atm_ip atm_core
-netatm/ipatm/ipatm_usrreq.c optional atm_ip atm_core
-netatm/ipatm/ipatm_vcm.c optional atm_ip atm_core
-netatm/sigpvc/sigpvc_if.c optional atm_sigpvc atm_core
-netatm/sigpvc/sigpvc_subr.c optional atm_sigpvc atm_core
-netatm/spans/spans_arp.c optional atm_spans atm_core \
- dependency "spans_xdr.h"
-netatm/spans/spans_cls.c optional atm_spans atm_core
-netatm/spans/spans_if.c optional atm_spans atm_core
-netatm/spans/spans_kxdr.c optional atm_spans atm_core
-netatm/spans/spans_msg.c optional atm_spans atm_core
-netatm/spans/spans_print.c optional atm_spans atm_core
-netatm/spans/spans_proto.c optional atm_spans atm_core
-netatm/spans/spans_subr.c optional atm_spans atm_core
-netatm/spans/spans_util.c optional atm_spans atm_core
-spans_xdr.h optional atm_spans atm_core \
- before-depend \
- dependency "$S/netatm/spans/spans_xdr.x" \
- compile-with "rpcgen -h -C $S/netatm/spans/spans_xdr.x | grep -v rpc/rpc.h > spans_xdr.h" \
- clean "spans_xdr.h" \
- no-obj no-implicit-rule
-spans_xdr.c optional atm_spans atm_core \
- before-depend \
- dependency "$S/netatm/spans/spans_xdr.x" \
- compile-with "rpcgen -c -C $S/netatm/spans/spans_xdr.x | grep -v rpc/rpc.h > spans_xdr.c" \
- clean "spans_xdr.c" \
- no-obj no-implicit-rule local
-spans_xdr.o optional atm_spans atm_core \
- dependency "$S/netatm/spans/spans_xdr.x" \
- compile-with "${NORMAL_C}" \
- no-implicit-rule local
-netatm/uni/q2110_sigaa.c optional atm_uni atm_core
-netatm/uni/q2110_sigcpcs.c optional atm_uni atm_core
-netatm/uni/q2110_subr.c optional atm_uni atm_core
-netatm/uni/qsaal1_sigaa.c optional atm_uni atm_core
-netatm/uni/qsaal1_sigcpcs.c optional atm_uni atm_core
-netatm/uni/qsaal1_subr.c optional atm_uni atm_core
-netatm/uni/sscf_uni.c optional atm_uni atm_core
-netatm/uni/sscf_uni_lower.c optional atm_uni atm_core
-netatm/uni/sscf_uni_upper.c optional atm_uni atm_core
-netatm/uni/sscop.c optional atm_uni atm_core
-netatm/uni/sscop_lower.c optional atm_uni atm_core
-netatm/uni/sscop_pdu.c optional atm_uni atm_core
-netatm/uni/sscop_sigaa.c optional atm_uni atm_core
-netatm/uni/sscop_sigcpcs.c optional atm_uni atm_core
-netatm/uni/sscop_subr.c optional atm_uni atm_core
-netatm/uni/sscop_timer.c optional atm_uni atm_core
-netatm/uni/sscop_upper.c optional atm_uni atm_core
-netatm/uni/uni_load.c optional atm_uni atm_core
-netatm/uni/uniarp.c optional atm_uni atm_core
-netatm/uni/uniarp_cache.c optional atm_uni atm_core
-netatm/uni/uniarp_input.c optional atm_uni atm_core
-netatm/uni/uniarp_output.c optional atm_uni atm_core
-netatm/uni/uniarp_timer.c optional atm_uni atm_core
-netatm/uni/uniarp_vcm.c optional atm_uni atm_core
-netatm/uni/uniip.c optional atm_uni atm_core
-netatm/uni/unisig_decode.c optional atm_uni atm_core
-netatm/uni/unisig_encode.c optional atm_uni atm_core
-netatm/uni/unisig_if.c optional atm_uni atm_core
-netatm/uni/unisig_mbuf.c optional atm_uni atm_core
-netatm/uni/unisig_msg.c optional atm_uni atm_core
-netatm/uni/unisig_print.c optional atm_uni atm_core
-netatm/uni/unisig_proto.c optional atm_uni atm_core
-netatm/uni/unisig_sigmgr_state.c optional atm_uni atm_core
-netatm/uni/unisig_subr.c optional atm_uni atm_core
-netatm/uni/unisig_util.c optional atm_uni atm_core
-netatm/uni/unisig_vc_state.c optional atm_uni atm_core
-netgraph/atm/atmpif/ng_atmpif.c optional netgraph_atm_atmpif
-netgraph/atm/atmpif/ng_atmpif_harp.c optional netgraph_atm_atmpif
+#
+# netatm has been disconnected from the build until it is MPSAFE, or
+# alternatively, until it is removed.
+#
+#netatm/atm_aal5.c optional atm_core
+#netatm/atm_cm.c optional atm_core
+#netatm/atm_device.c optional atm_core
+#netatm/atm_if.c optional atm_core
+#netatm/atm_proto.c optional atm_core
+#netatm/atm_signal.c optional atm_core
+#netatm/atm_socket.c optional atm_core
+#netatm/atm_subr.c optional atm_core
+#netatm/atm_usrreq.c optional atm_core
+#netatm/ipatm/ipatm_event.c optional atm_ip atm_core
+#netatm/ipatm/ipatm_if.c optional atm_ip atm_core
+#netatm/ipatm/ipatm_input.c optional atm_ip atm_core
+#netatm/ipatm/ipatm_load.c optional atm_ip atm_core
+#netatm/ipatm/ipatm_output.c optional atm_ip atm_core
+#netatm/ipatm/ipatm_usrreq.c optional atm_ip atm_core
+#netatm/ipatm/ipatm_vcm.c optional atm_ip atm_core
+#netatm/sigpvc/sigpvc_if.c optional atm_sigpvc atm_core
+#netatm/sigpvc/sigpvc_subr.c optional atm_sigpvc atm_core
+#netatm/spans/spans_arp.c optional atm_spans atm_core \
+# dependency "spans_xdr.h"
+#netatm/spans/spans_cls.c optional atm_spans atm_core
+#netatm/spans/spans_if.c optional atm_spans atm_core
+#netatm/spans/spans_kxdr.c optional atm_spans atm_core
+#netatm/spans/spans_msg.c optional atm_spans atm_core
+#netatm/spans/spans_print.c optional atm_spans atm_core
+#netatm/spans/spans_proto.c optional atm_spans atm_core
+#netatm/spans/spans_subr.c optional atm_spans atm_core
+#netatm/spans/spans_util.c optional atm_spans atm_core
+#spans_xdr.h optional atm_spans atm_core \
+# before-depend \
+# dependency "$S/netatm/spans/spans_xdr.x" \
+# compile-with "rpcgen -h -C $S/netatm/spans/spans_xdr.x | grep -v rpc/rpc.h > spans_xdr.h" \
+# clean "spans_xdr.h" \
+# no-obj no-implicit-rule
+#spans_xdr.c optional atm_spans atm_core \
+# before-depend \
+# dependency "$S/netatm/spans/spans_xdr.x" \
+# compile-with "rpcgen -c -C $S/netatm/spans/spans_xdr.x | grep -v rpc/rpc.h > spans_xdr.c" \
+# clean "spans_xdr.c" \
+# no-obj no-implicit-rule local
+#spans_xdr.o optional atm_spans atm_core \
+# dependency "$S/netatm/spans/spans_xdr.x" \
+# compile-with "${NORMAL_C}" \
+# no-implicit-rule local
+#netatm/uni/q2110_sigaa.c optional atm_uni atm_core
+#netatm/uni/q2110_sigcpcs.c optional atm_uni atm_core
+#netatm/uni/q2110_subr.c optional atm_uni atm_core
+#netatm/uni/qsaal1_sigaa.c optional atm_uni atm_core
+#netatm/uni/qsaal1_sigcpcs.c optional atm_uni atm_core
+#netatm/uni/qsaal1_subr.c optional atm_uni atm_core
+#netatm/uni/sscf_uni.c optional atm_uni atm_core
+#netatm/uni/sscf_uni_lower.c optional atm_uni atm_core
+#netatm/uni/sscf_uni_upper.c optional atm_uni atm_core
+#netatm/uni/sscop.c optional atm_uni atm_core
+#netatm/uni/sscop_lower.c optional atm_uni atm_core
+#netatm/uni/sscop_pdu.c optional atm_uni atm_core
+#netatm/uni/sscop_sigaa.c optional atm_uni atm_core
+#netatm/uni/sscop_sigcpcs.c optional atm_uni atm_core
+#netatm/uni/sscop_subr.c optional atm_uni atm_core
+#netatm/uni/sscop_timer.c optional atm_uni atm_core
+#netatm/uni/sscop_upper.c optional atm_uni atm_core
+#netatm/uni/uni_load.c optional atm_uni atm_core
+#netatm/uni/uniarp.c optional atm_uni atm_core
+#netatm/uni/uniarp_cache.c optional atm_uni atm_core
+#netatm/uni/uniarp_input.c optional atm_uni atm_core
+#netatm/uni/uniarp_output.c optional atm_uni atm_core
+#netatm/uni/uniarp_timer.c optional atm_uni atm_core
+#netatm/uni/uniarp_vcm.c optional atm_uni atm_core
+#netatm/uni/uniip.c optional atm_uni atm_core
+#netatm/uni/unisig_decode.c optional atm_uni atm_core
+#netatm/uni/unisig_encode.c optional atm_uni atm_core
+#netatm/uni/unisig_if.c optional atm_uni atm_core
+#netatm/uni/unisig_mbuf.c optional atm_uni atm_core
+#netatm/uni/unisig_msg.c optional atm_uni atm_core
+#netatm/uni/unisig_print.c optional atm_uni atm_core
+#netatm/uni/unisig_proto.c optional atm_uni atm_core
+#netatm/uni/unisig_sigmgr_state.c optional atm_uni atm_core
+#netatm/uni/unisig_subr.c optional atm_uni atm_core
+#netatm/uni/unisig_util.c optional atm_uni atm_core
+#netatm/uni/unisig_vc_state.c optional atm_uni atm_core
+#netgraph/atm/atmpif/ng_atmpif.c optional netgraph_atm_atmpif
+#netgraph/atm/atmpif/ng_atmpif_harp.c optional netgraph_atm_atmpif
netgraph/atm/ccatm/ng_ccatm.c optional ngatm_ccatm \
compile-with "${NORMAL_C} -I$S/contrib/ngatm"
netgraph/atm/ng_atm.c optional ngatm_atm
diff --git a/sys/conf/options b/sys/conf/options
index 281c40d..cd64e63 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -480,12 +480,12 @@ ZERO_COPY_SOCKETS opt_zero.h
TI_PRIVATE_JUMBOS opt_ti.h
TI_JUMBO_HDRSPLIT opt_ti.h
-# ATM (HARP version)
-ATM_CORE opt_atm.h
-ATM_IP opt_atm.h
-ATM_SIGPVC opt_atm.h
-ATM_SPANS opt_atm.h
-ATM_UNI opt_atm.h
+# ATM (HARP version) - disabled as not MPSAFE in 7.0
+#ATM_CORE opt_atm.h
+#ATM_IP opt_atm.h
+#ATM_SIGPVC opt_atm.h
+#ATM_SPANS opt_atm.h
+#ATM_UNI opt_atm.h
# XXX Conflict: # of devices vs network protocol (Native ATM).
# This makes "atm.h" unusable.
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index babb1cb..c4f402e 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -88,7 +88,7 @@ SUBDIR= ${_3dfx} \
fxp \
${_gem} \
geom \
- harp \
+ ${_harp} \
hatm \
${_hfa} \
hifn \
@@ -321,6 +321,11 @@ _vpo= vpo
_ufs= ufs
.endif
+# Disabled in 7.0 as netatm is not MPSAFE.
+#if ${MK_ATM} != "no"
+#_harp= harp
+#.endif
+
.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
.if exists(${.CURDIR}/../opencrypto)
_crypto= crypto
@@ -376,7 +381,8 @@ _ep= ep
_exca= exca
_ext2fs= ext2fs
_fe= fe
-_hfa= hfa
+# Disabled due to non-MPSAFEty in 7.0
+#_hfa= hfa
_i2c= i2c
_ibcs2= ibcs2
_ie= ie
@@ -437,7 +443,8 @@ _hptiop= hptiop
_hptmv= hptmv
_ichwd= ichwd
_ida= ida
-_idt= idt
+# Disabled due to non-MPSAFEty in 7.0
+#_idt= idt
_iir= iir
_ipmi= ipmi
_ips= ips
diff --git a/sys/modules/netgraph/atm/Makefile b/sys/modules/netgraph/atm/Makefile
index 51361d7..a884778 100644
--- a/sys/modules/netgraph/atm/Makefile
+++ b/sys/modules/netgraph/atm/Makefile
@@ -3,10 +3,12 @@
SUBDIR= \
atm \
atmbase \
- atmpif \
ccatm \
sscfu \
sscop \
uni
+# atmpif disabled due to non-MPSAFEty in 7.0
+# atmpif \
+
.include <bsd.subdir.mk>
diff --git a/sys/netatm/atm_proto.c b/sys/netatm/atm_proto.c
index 0d4697b..2fffc5a 100644
--- a/sys/netatm/atm_proto.c
+++ b/sys/netatm/atm_proto.c
@@ -51,7 +51,7 @@ __FBSDID("$FreeBSD$");
#include <netatm/atm_pcb.h>
#include <netatm/atm_var.h>
-NET_NEEDS_GIANT("netatm");
+#error "NET_NEEDS_GIANT"
struct protosw atmsw[] = {
{
OpenPOWER on IntegriCloud