ieee802154: 6lowpan: improve packet registration
authorAlexander Aring <alex.aring@gmail.com>
Mon, 13 Oct 2014 08:33:06 +0000 (10:33 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 05:56:24 +0000 (07:56 +0200)
commit1ae2605e55c6ef640238fb2e03d044119acd9a37
treea433a7037d4be8123eef1ae610d45568e8cf55c5
parentddbea5cff7d5e2a9727f72c948e92b676a061fc5
ieee802154: 6lowpan: improve packet registration

This patch improves the packet registration handling. Instead of
registration with module init we have a open count variable and
registration the lowpan packet handler when it's needed.

The open count variable should be protected by RTNL.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan_rtnl.c