]> git.hungrycats.org Git - linux/commit
[BRIDGE]: Ethernet bridge driver device mangling cleanup
authorStephen Hemminger <shemminger@osdl.org>
Fri, 18 Apr 2003 04:28:56 +0000 (21:28 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Fri, 18 Apr 2003 04:28:56 +0000 (21:28 -0700)
commita4f64ccb5e3fe5642b5ab1cd96c726cfc1f73c86
tree8f728d348811addefc740b0efcc7eab4bc9e0546
parent2631ea60bbf529bec7c3d15f93e9ae6c403eda2a
[BRIDGE]: Ethernet bridge driver device mangling cleanup

Second try at the bridge driver module handling cleanup...

1) Eliminate keeping a seperate bridge_list and use a bit on
   the priv_flags structure.  This is equivalent to how the VLAN
   code works. Makes code cleaner and correctly handles cases like
   creating a bridge with the same name as an existing ether device etc.

2) Don't do own module ref counting that is inhernently racy.
   Instead set owner field and cleanup debris on unload.

3) Do last state cleanup in destructor

4) Change of bridge state (dev_open/stop) should use write_lock

5) Make sure timer is not running when cleared.

6) Use "const char *" where possible
include/linux/if.h
net/bridge/br.c
net/bridge/br_device.c
net/bridge/br_if.c
net/bridge/br_private.h
net/bridge/br_stp_if.c