diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-05-22 15:43:53 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-05-23 15:57:08 (GMT) |
commit | 344f8c119df742f2bf7098cf8fc326351f583249 (patch) | |
tree | 032162247fc24529b2809f4e3a914e66ef836400 /net/mac802154/mib.c | |
parent | 4a3a8c0c3a613e481bea931f0d65dc4a7efaa9b9 (diff) | |
download | linux-344f8c119df742f2bf7098cf8fc326351f583249.tar.xz |
mac802154: use atomic ops for sequence incrementation
This patch will use atomic operations for sequence number incrementation
while MAC header generation. Upper layers like af_802154 or 6LoWPAN
could call this function in a parallel context while generating 802.15.4
MAC header before queuing into wpan interfaces transmit queue.
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>
Diffstat (limited to 'net/mac802154/mib.c')
-rw-r--r-- | net/mac802154/mib.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/mac802154/mib.c b/net/mac802154/mib.c index 033dfc7..00a62de 100644 --- a/net/mac802154/mib.c +++ b/net/mac802154/mib.c @@ -76,15 +76,6 @@ void mac802154_dev_set_pan_id(struct net_device *dev, __le16 val) spin_unlock_bh(&sdata->mib_lock); } -u8 mac802154_dev_get_dsn(const struct net_device *dev) -{ - struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); - - BUG_ON(dev->type != ARPHRD_IEEE802154); - - return sdata->wpan_dev.dsn++; -} - void mac802154_dev_set_page_channel(struct net_device *dev, u8 page, u8 chan) { struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); |