Date: Mon, 22 Mar 2004 08:04:43 -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_gre.c if_gre.h src/sys/netinet ip_gre.c Message-ID: <200403221604.i2MG4ht3084226@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2004/03/22 08:04:43 PST FreeBSD src repository Modified files: sys/net if_gre.c if_gre.h sys/netinet ip_gre.c Log: Lock down global variables in if_gre: - Add gre_mtx to protect global softc list. - Hold gre_mtx over various list operations (insert, delete). - Centralize if_gre interface teardown in gre_destroy(), and call this from modevent unload and gre_clone_destroy(). - Export gre_mtx to ip_gre.c, which walks the gre list to look up gre interfaces during encapsulation. Add a wonking comment on how we need some sort of drain/reference count mechanism to keep gre references alive while in use and simultaneous destroy. This commit does not lockdown softc data, which follows in a future commit. Revision Changes Path 1.21 +33 -8 src/sys/net/if_gre.c 1.11 +1 -0 src/sys/net/if_gre.h 1.16 +12 -1 src/sys/netinet/ip_gre.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403221604.i2MG4ht3084226>