trelay: handle netdevice events correctly
authorAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
Wed, 25 Sep 2019 14:47:11 +0000 (17:47 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 19 Oct 2019 12:29:44 +0000 (14:29 +0200)
commit9784a470bb490988b275d32d4bbe9ddd56c2fd71
treebebcd136c77bf8e227abf99f61af6cadfa8d6a48
parent3b1d71ffd885531a961ed368ebfc07a71b828a0f
trelay: handle netdevice events correctly

Since v3.11, netdevice notification data are of type
"struct netdev_notifier_info". Handle it as such!

This should fix a critical bug in which devices are unable get released
because trelay does not release resources in response to UNREGISTER
event spamming the log with something like:

unregister_netdevice: waiting for eth0.1 to become free. Usage count = 1

Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
(cherry picked from commit 77cfc0739d30c1282f7de24d2ec086d244e34bb7)
package/kernel/trelay/src/trelay.c