]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: 6lowpan: register packet layer while open
authorAlexander Aring <alex.aring@gmail.com>
Wed, 2 Sep 2015 12:21:17 +0000 (14:21 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Sep 2015 11:20:02 +0000 (13:20 +0200)
commit11b7c4a9a846aff91a2638facd318f802d127746
treefb765ba6ffd634435e671753a3476b93af0eb5a9
parent9a0ba636c9f7cec9eea61af97acff5ed19d2b26a
ieee802154: 6lowpan: register packet layer while open

This patch moves the open count handling while doing open of a lowpan
interface. We need the packet handler register at first when one lowpan
interface is up. There exists a small case when all lowpan interfaces
are down and the 802154 packet layer is still registered. To reduce some
overhead we will register the packet layer when the first lowpan
interface comes up and unregister when the last interface will become down.

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan/core.c