network/gif - Correctly clear route cache on destroy.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 7 Apr 2014 07:37:56 +0000 (09:37 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 7 Apr 2014 08:19:06 +0000 (10:19 +0200)
commit3a127fa794fb37699df662e97c8afb94a78e44e6
tree3610c5e3aa33683abe6e1b3f229a54936a0e1cc0
parent6b4bd50c06b1f5bbf232628d1acae8ec64489d27
network/gif - Correctly clear route cache on destroy.

RTFREE() requires that the route is freed in the CPU it belongs to.
Migrating to the target CPU *before* calling it and returning to the
original CPU afterwards seems to do the trick.

Ok: @sephe
sys/net/gif/if_gif.c