author | Eliad Peller <eliad@wizery.com> | |
Sun, 29 Sep 2013 09:35:31 +0000 (12:35 +0300) | ||
committer | Eliad Peller <eliad@wizery.com> | |
Sun, 29 Sep 2013 09:35:31 +0000 (12:35 +0300) | ||
commit | d42f218c87ab842b1ba34ec142536fa9bc99d6d6 | |
tree | 5d26ae1a2d568131feba3e2087fa3365076603ef | tree | snapshot (tar.xz tar.gz zip) |
parent | 595b13b80f9b922d9e3a1c6e7b75c38b471b2b44 | commit | diff |
backport netdev_notifier_info_to_dev()
this is a bit tricky - newer kernels pass netdev_notifier_info
to the notifier, while older kernels pass the net_device itself.
instead of adding patching the callers, add a dummy function
to return the dev itself.
don't use LINUX_BACKPORT, so the build will break if this
struct/function is already defined.
Signed-off-by: Eliad Peller <eliad@wizery.com>
this is a bit tricky - newer kernels pass netdev_notifier_info
to the notifier, while older kernels pass the net_device itself.
instead of adding patching the callers, add a dummy function
to return the dev itself.
don't use LINUX_BACKPORT, so the build will break if this
struct/function is already defined.
Signed-off-by: Eliad Peller <eliad@wizery.com>
include/linux/netdevice.h | [new file with mode: 0644] | blob |