From patchwork Mon Feb 11 09:10:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 2776 Return-Path: Received: from nm14-vm3.bullet.mail.sg3.yahoo.com (nm14-vm3.bullet.mail.sg3.yahoo.com [106.10.149.34]) by open-mesh.org (Postfix) with ESMTPS id ACAEB6013E6 for ; Mon, 11 Feb 2013 10:10:58 +0100 (CET) Received: from [106.10.166.120] by nm14.bullet.mail.sg3.yahoo.com with NNFMP; 11 Feb 2013 09:10:55 -0000 Received: from [106.10.167.151] by tm9.bullet.mail.sg3.yahoo.com with NNFMP; 11 Feb 2013 09:10:55 -0000 Received: from [127.0.0.1] by smtp124.mail.sg3.yahoo.com with NNFMP; 11 Feb 2013 09:10:55 -0000 X-Yahoo-Newman-Id: 531641.36078.bm@smtp124.mail.sg3.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: rRdeWqQVM1mNmgQVNG45GUvJbL0yQ_w8McZrz2uo9a2RFa8 bMQ.q7w6dorIIOnOMov4nyZs6e8HCYr5unteUypAbEB5lOaaRnIY6aW_GfqR va5Xl1Cbuzm_dVAdEQWnEQ_esHfuEU8ixCI216x7Jo_ylnLbwPWFwuUaplvG 5lr905QM5gKhkuXSZw9OQEKjzSyzcsNbcKHLVEJoRdy9WXpEIZKtDBFS1itt jDhq0QJJn4692PJ7RjpkdLpH9dEjBXGZXAvQvvbzuCbniu_XDGGQ8YeOUshC eAUWYNc7kRYt1dfScifackAPkUoi6IlDJcfa.8L84Vk756.vzMcUIBAnF8nQ I2A_Rd6B.sjGMk6NNljbujr32ThqezSkYWcaY0iIOHfEaVw7HOu3rVlmEdYS 0wwnKhRM8NSQSAMcpHav9khp1__97z3XFF5cFHageN6NC X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- Received: from localhost (lindner_marek@1.36.145.66 with plain) by smtp124.mail.sg3.yahoo.com with SMTP; 11 Feb 2013 01:10:55 -0800 PST From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Mon, 11 Feb 2013 17:10:25 +0800 Message-Id: <1360573828-24399-4-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360573828-24399-1-git-send-email-lindner_marek@yahoo.de> References: <201302111710.04911.lindner_marek@yahoo.de> <1360573828-24399-1-git-send-email-lindner_marek@yahoo.de> Cc: Marek Lindner , Sven Eckelmann Subject: [B.A.T.M.A.N.] [PATCHv3 4/6] batman-adv: rename batadv_softif_destroy to reflect sysfs use case X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 09:11:00 -0000 Signed-off-by: Marek Lindner CC: Sven Eckelmann --- hard-interface.c | 2 +- soft-interface.c | 6 +++++- soft-interface.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hard-interface.c b/hard-interface.c index 74e3ec2..6c32607 100644 --- a/hard-interface.c +++ b/hard-interface.c @@ -448,7 +448,7 @@ void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface, /* nobody uses this interface anymore */ if (!bat_priv->num_ifaces && autodel == BATADV_IF_CLEANUP_AUTO) - batadv_softif_destroy(hard_iface->soft_iface); + batadv_softif_destroy_sysfs(hard_iface->soft_iface); hard_iface->soft_iface = NULL; batadv_hardif_free_ref(hard_iface); diff --git a/soft-interface.c b/soft-interface.c index e889bfb..bc77a5b 100644 --- a/soft-interface.c +++ b/soft-interface.c @@ -581,7 +581,11 @@ struct net_device *batadv_softif_create(const char *name) return soft_iface; } -void batadv_softif_destroy(struct net_device *soft_iface) +/** + * batadv_softif_destroy_sysfs - deletion of batadv_soft_interface via sysfs + * @soft_iface: the to-be-removed batman-adv interface + */ +void batadv_softif_destroy_sysfs(struct net_device *soft_iface) { struct batadv_priv *bat_priv = netdev_priv(soft_iface); diff --git a/soft-interface.h b/soft-interface.h index 43182e5..49bc66b 100644 --- a/soft-interface.h +++ b/soft-interface.h @@ -25,7 +25,7 @@ void batadv_interface_rx(struct net_device *soft_iface, struct sk_buff *skb, struct batadv_hard_iface *recv_if, int hdr_size, struct batadv_orig_node *orig_node); struct net_device *batadv_softif_create(const char *name); -void batadv_softif_destroy(struct net_device *soft_iface); +void batadv_softif_destroy_sysfs(struct net_device *soft_iface); int batadv_softif_is_valid(const struct net_device *net_dev); #endif /* _NET_BATMAN_ADV_SOFT_INTERFACE_H_ */