Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2003 10:49:10 +0100 (CET)
From:      Harti Brandt <brandt@fokus.fraunhofer.de>
To:        Sam Leffler <sam@errno.com>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/hatm if_hatm.c if_hatmvar.h [MPSAFE network]
Message-ID:  <20031106103905.P95465@beagle.fokus.fraunhofer.de>
In-Reply-To: <200311050913.59097.sam@errno.com>
References:  <200311051147.hA5BlWiV057262@repoman.freebsd.org> <200311050913.59097.sam@errno.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 5 Nov 2003, Sam Leffler wrote:

SL>On Wednesday 05 November 2003 03:47 am, Hartmut Brandt wrote:
SL>> harti       2003/11/05 03:47:32 PST
SL>>
SL>>   FreeBSD src repository
SL>>
SL>>   Modified files:
SL>>     sys/dev/hatm         if_hatm.c if_hatmvar.h
SL>>   Log:
SL>>   Make the driver conditionally MPSAFE. MPSAFEty defaults to not-mpsafe
SL>>   but can be enabled by setting hw.atm.hatmN.mpsafe in the kernel
SL>>   environment to a non-zero value before loading the driver. When
SL>>   the problems with network MPSAFEty have been sorted out this will
SL>>   be removed and the driver will default to MPSAFE.
SL>
SL>I'm about to commit mods to make debug_mpsafenet globally visible so other
SL>parts of the system (to be committed) can use it too.  Perhaps your stuff
SL>should reference it also?

The reason I did it this way is that I want to be able to set it
per-interface. As soon as the IP stack works with MPSAFE drivers I'm going
to remove this. I have a simulation system that has 3 ATM cards - one for
connection to the outside world runs IP, the other two interface only to
netgraph. I want to keep the first card non-mpsafe (obviously), but the
other two mpsafe. This works just great. After fixing a problem in ng_base
now the entire simulation path ATM-netgraph-ATM runs without giant on my
dual-CPU system. This setup allows me to work on fixing locking issues
while keeping the machine on-line.

Currently I set debug_mpsafenet to true, because the driver cannot
override it. For my use that's no problem, because I have not other
network driver that is MPSAFE in the system.

harti
-- 
harti brandt,
http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private
brandt@fokus.fraunhofer.de, harti@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031106103905.P95465>