tipc: purge links when bearer is disabled

If a bearer is disabled by manual intervention, all links over that
bearer should be purged, indicated with the 'shutting_down' flag.
Otherwise tipc will get confused if a new bearer is enabled using
a different media type.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Erik Hugne 2015-02-27 08:56:56 +01:00 коммит произвёл David S. Miller
Родитель 7fe8097cef
Коммит afaa3f65f6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -742,7 +742,7 @@ int tipc_nl_bearer_disable(struct sk_buff *skb, struct genl_info *info)
return -EINVAL;
}
bearer_disable(net, bearer, false);
bearer_disable(net, bearer, true);
rtnl_unlock();
return 0;