]> git.openfabrics.org - ~emulex/for-vlad/old/compat.git/commit
compat: add new way to backport the usage of net_device_ops
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 4 May 2010 23:43:05 +0000 (16:43 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 4 May 2010 23:43:05 +0000 (16:43 -0700)
commit7349fb77e7b24102f4539a8022e9fd75147b5012
tree5b7e22e00d9a708fb3a908883a49491ad3fe78e2
parent2ce27fe6b3a6a5060853fd3239fccf0bbe6d94be
compat: add new way to backport the usage of net_device_ops

We tend to #ifdef code that uses the new net_device_ops
on kernels older than 2.6.29. This tends to create a burden
on the upkeeping of the hunks. We can minimize our work by
instead definining a new netdev_attach_ops() which will do
our backport work for the older kernels and simply attach
the ops for newer kernels.

This should simplify backporting of network drivers
considerably.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat-2.6.29.c
include/linux/compat-2.6.29.h