diff options
Diffstat (limited to 'net/batman-adv/hard-interface.h')
-rw-r--r-- | net/batman-adv/hard-interface.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h index 308437d52e22..49892881a7c5 100644 --- a/net/batman-adv/hard-interface.h +++ b/net/batman-adv/hard-interface.h | |||
@@ -29,13 +29,24 @@ enum batadv_hard_if_state { | |||
29 | BATADV_IF_I_WANT_YOU, | 29 | BATADV_IF_I_WANT_YOU, |
30 | }; | 30 | }; |
31 | 31 | ||
32 | /** | ||
33 | * enum batadv_hard_if_cleanup - Cleanup modi for soft_iface after slave removal | ||
34 | * @BATADV_IF_CLEANUP_KEEP: Don't automatically delete soft-interface | ||
35 | * @BATADV_IF_CLEANUP_AUTO: Delete soft-interface after last slave was removed | ||
36 | */ | ||
37 | enum batadv_hard_if_cleanup { | ||
38 | BATADV_IF_CLEANUP_KEEP, | ||
39 | BATADV_IF_CLEANUP_AUTO, | ||
40 | }; | ||
41 | |||
32 | extern struct notifier_block batadv_hard_if_notifier; | 42 | extern struct notifier_block batadv_hard_if_notifier; |
33 | 43 | ||
34 | struct batadv_hard_iface* | 44 | struct batadv_hard_iface* |
35 | batadv_hardif_get_by_netdev(const struct net_device *net_dev); | 45 | batadv_hardif_get_by_netdev(const struct net_device *net_dev); |
36 | int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface, | 46 | int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface, |
37 | const char *iface_name); | 47 | const char *iface_name); |
38 | void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface); | 48 | void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface, |
49 | enum batadv_hard_if_cleanup autodel); | ||
39 | void batadv_hardif_remove_interfaces(void); | 50 | void batadv_hardif_remove_interfaces(void); |
40 | int batadv_hardif_min_mtu(struct net_device *soft_iface); | 51 | int batadv_hardif_min_mtu(struct net_device *soft_iface); |
41 | void batadv_update_min_mtu(struct net_device *soft_iface); | 52 | void batadv_update_min_mtu(struct net_device *soft_iface); |