6lowpan: rework fragment-deleting routine
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>
Tue, 10 Jul 2012 21:22:48 +0000 (21:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2012 14:54:46 +0000 (07:54 -0700)
commit33c34c5e9310622d5ed9a53d571f92824044020f
tree46be5ba0abb2f892ee99d82eb2d7268355a99688
parentabbee2effcbce55440accb0a1dd315562875efa2
6lowpan: rework fragment-deleting routine

6lowpan module starts collecting incomming frames and fragments
right after lowpan_module_init() therefor it will be better to
clean unfinished fragments in lowpan_cleanup_module() function
instead of doing it when link goes down.

Changed spinlocks type to prevent deadlock with expired timer event
and removed unused one.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c