Date: Mon, 22 Mar 2004 07:43:15 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_gif.c Message-ID: <200403221543.i2MFhFFX079114@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2004/03/22 07:43:15 PST
FreeBSD src repository
Modified files:
sys/net if_gif.c
Log:
Lock down global variables in if_gif:
- Add gif_mtx, which protects globals.
- Hold gif_mtx around manipulation of gif_softc_list.
- Abstract gif destruction code into gif_destroy(), which tears down
a softc after it's been removed from the global list by either module
unload or clone destroy.
- Lock gif_called, even though we know gif_called is broken with reentrant
network processing.
- Document an event ordering problem in gif_set_tunnel() that will need
to be fixed.
gif_softc fields not locked down in this commit.
Revision Changes Path
1.43 +50 -9 src/sys/net/if_gif.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403221543.i2MFhFFX079114>
