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>
This commit is contained in:

committed by
Paul Gortmaker

parent
bfec73d7e4
commit
8c12118db7
@@ -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);
|
||||
|
Reference in New Issue
Block a user