diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2013-02-11 04:10:25 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-03-27 05:27:33 -0400 |
commit | e07932ae6fb74ef707b2b27762fb0ad8aea4b55f (patch) | |
tree | d92690dfa77d66735b55f882cd0a7b0b75c5de20 | |
parent | a15fd3612dd95341ad190def7faceebb41d6e346 (diff) |
batman-adv: rename batadv_softif_destroy to reflect sysfs use case
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
CC: Sven Eckelmann <sven@narfation.org>
Acked-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
-rw-r--r-- | net/batman-adv/hard-interface.c | 2 | ||||
-rw-r--r-- | net/batman-adv/soft-interface.c | 6 | ||||
-rw-r--r-- | net/batman-adv/soft-interface.h | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index 74e3ec2fb116..6c32607a6e93 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c | |||
@@ -448,7 +448,7 @@ void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface, | |||
448 | 448 | ||
449 | /* nobody uses this interface anymore */ | 449 | /* nobody uses this interface anymore */ |
450 | if (!bat_priv->num_ifaces && autodel == BATADV_IF_CLEANUP_AUTO) | 450 | if (!bat_priv->num_ifaces && autodel == BATADV_IF_CLEANUP_AUTO) |
451 | batadv_softif_destroy(hard_iface->soft_iface); | 451 | batadv_softif_destroy_sysfs(hard_iface->soft_iface); |
452 | 452 | ||
453 | hard_iface->soft_iface = NULL; | 453 | hard_iface->soft_iface = NULL; |
454 | batadv_hardif_free_ref(hard_iface); | 454 | batadv_hardif_free_ref(hard_iface); |
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index e889bfb1bfc3..bc77a5be960d 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -581,7 +581,11 @@ struct net_device *batadv_softif_create(const char *name) | |||
581 | return soft_iface; | 581 | return soft_iface; |
582 | } | 582 | } |
583 | 583 | ||
584 | void batadv_softif_destroy(struct net_device *soft_iface) | 584 | /** |
585 | * batadv_softif_destroy_sysfs - deletion of batadv_soft_interface via sysfs | ||
586 | * @soft_iface: the to-be-removed batman-adv interface | ||
587 | */ | ||
588 | void batadv_softif_destroy_sysfs(struct net_device *soft_iface) | ||
585 | { | 589 | { |
586 | struct batadv_priv *bat_priv = netdev_priv(soft_iface); | 590 | struct batadv_priv *bat_priv = netdev_priv(soft_iface); |
587 | 591 | ||
diff --git a/net/batman-adv/soft-interface.h b/net/batman-adv/soft-interface.h index 43182e5e603a..49bc66bb774a 100644 --- a/net/batman-adv/soft-interface.h +++ b/net/batman-adv/soft-interface.h | |||
@@ -25,7 +25,7 @@ void batadv_interface_rx(struct net_device *soft_iface, | |||
25 | struct sk_buff *skb, struct batadv_hard_iface *recv_if, | 25 | struct sk_buff *skb, struct batadv_hard_iface *recv_if, |
26 | int hdr_size, struct batadv_orig_node *orig_node); | 26 | int hdr_size, struct batadv_orig_node *orig_node); |
27 | struct net_device *batadv_softif_create(const char *name); | 27 | struct net_device *batadv_softif_create(const char *name); |
28 | void batadv_softif_destroy(struct net_device *soft_iface); | 28 | void batadv_softif_destroy_sysfs(struct net_device *soft_iface); |
29 | int batadv_softif_is_valid(const struct net_device *net_dev); | 29 | int batadv_softif_is_valid(const struct net_device *net_dev); |
30 | 30 | ||
31 | #endif /* _NET_BATMAN_ADV_SOFT_INTERFACE_H_ */ | 31 | #endif /* _NET_BATMAN_ADV_SOFT_INTERFACE_H_ */ |