diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-10-19 14:58:29 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-27 11:33:41 -0500 |
commit | 8c12118db77dce5a7abf1a0e87af56592fdd7c09 (patch) | |
tree | 77d267ff594515bbe59b01c338c26d8c4d39aec2 /net/tipc/eth_media.c | |
parent | bfec73d7e45cdf570d649a547050295789e1e6fb (diff) | |
download | op-kernel-dev-8c12118db77dce5a7abf1a0e87af56592fdd7c09.zip op-kernel-dev-8c12118db77dce5a7abf1a0e87af56592fdd7c09.tar.gz |
tipc: Minor optimization to deactivation of Ethernet media suppot
Change TIPC's shutdown code to deactivate generic networking support
before terminating Ethernet media support. The deactivation of generic
networking support causes all existing bearers to be destroyed, meaning
the Ethernet media termination routine no longer has to bother marking
them as unavailable.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/eth_media.c')
-rw-r--r-- | net/tipc/eth_media.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c index 3b75c0d..23bf67b 100644 --- a/net/tipc/eth_media.c +++ b/net/tipc/eth_media.c @@ -376,10 +376,6 @@ void tipc_eth_media_stop(void) unregister_netdevice_notifier(¬ifier); for (i = 0; i < MAX_ETH_BEARERS ; i++) { - if (eth_bearers[i].bearer) { - eth_bearers[i].bearer->blocked = 1; - eth_bearers[i].bearer = NULL; - } if (eth_bearers[i].dev) { dev_remove_pack(ð_bearers[i].tipc_packet_type); dev_put(eth_bearers[i].dev); |