tipc: Do timely cleanup of disabled Ethernet bearer resources
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 19 Oct 2011 19:18:11 +0000 (15:18 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:33:42 +0000 (11:33 -0500)
commit64b32f7e38627a325c825087318c09075a5edc42
tree2e093df7217fdc197467e05623c4e9bf712462a6
parent8c12118db77dce5a7abf1a0e87af56592fdd7c09
tipc: Do timely cleanup of disabled Ethernet bearer resources

Modifies Ethernet bearer disable logic to break the association between
the bearer and its device driver at the time the bearer is disabled,
rather than when the TIPC module is unloaded. This allows the array
entry used by the disabled bearer to be re-used if the same bearer (or
a different one) is subsequently enabled.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/eth_media.c