projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7142fc1
)
batman-adv: NETIF_F_NETNS_LOCAL feature to prevent netns moves
author
Andrew Lunn
<
[email protected]
>
Tue, 1 Mar 2016 21:19:05 +0000
(22:19 +0100)
committer
Antonio Quartulli
<
[email protected]
>
Tue, 10 May 2016 10:26:44 +0000
(18:26 +0800)
The batX soft interface should not be moved between network name
spaces. This is similar to bridges, bonds, tunnels, which are not
allowed to move between network namespaces.
Suggested-by: Daniel Ehlers <
[email protected]
>
Signed-off-by: Andrew Lunn <
[email protected]
>
Acked-by: Antonio Quartulli <
[email protected]
>
Reviewed-by: Sven Eckelmann <
[email protected]
>
Signed-off-by: Marek Lindner <
[email protected]
>
Signed-off-by: Antonio Quartulli <
[email protected]
>
net/batman-adv/soft-interface.c
patch
|
blob
|
history
diff --git
a/net/batman-adv/soft-interface.c
b/net/batman-adv/soft-interface.c
index d72f8870773690dd336f7df8e796a73fbe2a7174..66dd0aac480ae175eed018b7c041de3e0cc1a437 100644
(file)
--- a/
net/batman-adv/soft-interface.c
+++ b/
net/batman-adv/soft-interface.c
@@
-972,7
+972,7
@@
static void batadv_softif_init_early(struct net_device *dev)
dev->netdev_ops = &batadv_netdev_ops;
dev->destructor = batadv_softif_free;
- dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER;
+ dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER
| NETIF_F_NETNS_LOCAL
;
dev->priv_flags |= IFF_NO_QUEUE;
/* can't call min_mtu, because the needed variables