projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
batman-adv: add infrastructure to change routing algorithm at runtime
[deliverable/linux.git]
/
net
/
batman-adv
/
soft-interface.c
diff --git
a/net/batman-adv/soft-interface.c
b/net/batman-adv/soft-interface.c
index bd8c7cfaeacf47f04a2e0d757a7325242073aaa5..b5aecd5e45ccea4f8f21d509e5b59bfacb13a5d5 100644
(file)
--- a/
net/batman-adv/soft-interface.c
+++ b/
net/batman-adv/soft-interface.c
@@
-855,6
+855,10
@@
struct net_device *softif_create(const char *name)
bat_priv->primary_if = NULL;
bat_priv->num_ifaces = 0;
+ ret = bat_algo_select(bat_priv, bat_routing_algo);
+ if (ret < 0)
+ goto unreg_soft_iface;
+
ret = sysfs_add_meshif(soft_iface);
if (ret < 0)
goto unreg_soft_iface;
This page took
0.02878 seconds
and
5
git commands to generate.