From: Alexander Aring <alex.aring@gmail.com>
To: Stefan Schmidt <stefan@osg.samsung.com>
Cc: linux-wpan@vger.kernel.org, linux-bluetooth@vger.kernel.org,
netdev@vger.kernel.org, kernel@pengutronix.de, mcr@sandelman.ca,
lukasz.duda@nordicsemi.no, martin.gergeleit@hs-rm.de
Subject: Re: [RFCv2 bluetooth-next 1/3] 6lowpan: add debugfs support
Date: Wed, 25 Nov 2015 19:00:54 +0100 [thread overview]
Message-ID: <20151125180049.GA4652@omega> (raw)
In-Reply-To: <5655E4F8.3050900@osg.samsung.com>
Hi,
On Wed, Nov 25, 2015 at 05:42:32PM +0100, Stefan Schmidt wrote:
> Hello.
>
> On 17/11/15 23:33, Alexander Aring wrote:
> >This patch will introduce a 6lowpan entry into the debugfs if enabled.
> >Inside this 6lowpan directory we create a subdirectories of all 6lowpan
> >interfaces to offer a per interface debugfs support.
>
...
> > static void lowpan_dellink(struct net_device *ldev, struct list_head *head)
> >@@ -180,6 +187,7 @@ static void lowpan_dellink(struct net_device *ldev, struct list_head *head)
> > ASSERT_RTNL();
> > wdev->ieee802154_ptr->lowpan_dev = NULL;
> >+ lowpan_netdev_unsetup(ldev);
> > unregister_netdevice(ldev);
> > dev_put(wdev);
> > }
>
> If you are going to change the th uninit to exit and the unsetup to teardown
> you can add my review.
>
> Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
>
I will add a patch which introduce the two functions:
lowpan_register_netdevice - register_netdevice (without rtnl lock)
lowpan_register_netdev - register_netdev (with rtnl lock)
These two functions will call register_netdevice/register_netdev and 6lowpan
debugfs init.
I will remove the lowpan_netdev_unsetup function and introduce a:
lowpan_unregister_netdevice - unregister_netdevice
which calls unregister_netdevice and lowpan_dev_debugfs_exit. I will
change the uninit to exit.
Then we keep the same naming stuff like netdev and these function should
always called when doing register_netdev/unregister_netdev for all
lowpan interface.
Then we can also move lowpan_netdev_setup before register_netdev. This
will move more functionality which should be the same on all lowpan
interfaces into the net/6lowpan branch.
- Alex
next prev parent reply other threads:[~2015-11-25 18:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 22:33 [RFCv2 bluetooth-next 0/3] 6lowpan: debugfs and stateful compression support Alexander Aring
2015-11-17 22:33 ` [RFCv2 bluetooth-next 1/3] 6lowpan: add debugfs support Alexander Aring
2015-11-25 16:42 ` Stefan Schmidt
2015-11-25 18:00 ` Alexander Aring [this message]
2015-11-26 11:07 ` Stefan Schmidt
[not found] ` <1447799594-6050-1-git-send-email-alex.aring-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-17 22:33 ` [RFCv2 bluetooth-next 2/3] ipv6: add ipv6_addr_prefix_cpy Alexander Aring
[not found] ` <1447799594-6050-3-git-send-email-alex.aring-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-18 13:55 ` Sergei Shtylyov
2015-11-25 16:42 ` Stefan Schmidt
2015-11-25 16:42 ` Stefan Schmidt
[not found] ` <5655E50C.5090906-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-11-25 18:17 ` Alexander Aring
2015-11-26 11:11 ` Stefan Schmidt
2015-11-17 22:33 ` [RFCv2 bluetooth-next 3/3] 6lowpan: iphc: add support for stateful compression Alexander Aring
[not found] ` <1447799594-6050-4-git-send-email-alex.aring-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-25 17:12 ` Stefan Schmidt
[not found] ` <5655EBF9.7060102-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-11-25 18:07 ` Alexander Aring
2015-11-26 11:19 ` Stefan Schmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151125180049.GA4652@omega \
--to=alex.aring@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-wpan@vger.kernel.org \
--cc=lukasz.duda@nordicsemi.no \
--cc=martin.gergeleit@hs-rm.de \
--cc=mcr@sandelman.ca \
--cc=netdev@vger.kernel.org \
--cc=stefan@osg.samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).