mac802154: remove mib lock
authorAlexander Aring <alex.aring@gmail.com>
Fri, 22 May 2015 15:43:54 +0000 (17:43 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 23 May 2015 15:57:08 +0000 (17:57 +0200)
commitc947f7e1e31a708f5a4ea8c1a627bec578cd9223
tree2b00d3be6c911ec0f8a133499994e4bb185ecb76
parent344f8c119df742f2bf7098cf8fc326351f583249
mac802154: remove mib lock

This patch removes the mib lock. The new locking mechanism is to protect
the mib values with the rtnl lock. Note that this isn't always necessary
if we have an interface up the most mib values are readonly (e.g.
address settings). With this behaviour we can remove locking in
hotpath like frame parsing completely. It depends on context if we need
to hold the rtnl lock or not, this makes the callbacks of
ieee802154_mlme_ops unnecessary because these callbacks hols always the
locks.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/ieee802154_netdev.h
net/ieee802154/6lowpan/core.c
net/ieee802154/6lowpan/tx.c
net/ieee802154/nl-mac.c
net/ieee802154/socket.c
net/mac802154/ieee802154_i.h
net/mac802154/iface.c
net/mac802154/mac_cmd.c
net/mac802154/mib.c
net/mac802154/rx.c