cvs commit: src/sys/net if_gre.c if_gre.h src/sys/netinet ip_gre.c
Robert Watson
rwatson at FreeBSD.org
Mon Mar 22 08:04:44 PST 2004
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
More information about the cvs-src
mailing list