diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2008-05-29 17:34:12 +0530 |
---|---|---|
committer | Luis R. Rodriguez <lrodriguez@atheros.com> | 2008-05-29 17:34:12 +0530 |
commit | c6f4ce6dd3af29c7d78f9c2d109fb592e27b1b3e (patch) | |
tree | 9c31f266bfaf43029cbd352fc5703544da74bdb3 | |
parent | 6e8d419d680fdd95d48b5e2aa5c59ff845362919 (diff) | |
download | compat-wireless-2.6-old-c6f4ce6dd3af29c7d78f9c2d109fb592e27b1b3e.tar.gz |
Add port work for alloc_netdev_mq() and NETIF_F_MULTI_QUEUE.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
-rw-r--r-- | compat/compat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compat/compat.h b/compat/compat.h index a844214..30a4cd5 100644 --- a/compat/compat.h +++ b/compat/compat.h @@ -132,6 +132,16 @@ static inline void pci_clear_mwi(struct pci_dev *dev) #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)) */ +/* Compat work for < 2.6.23 */ +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) + +/* Added as of 2.6.23 in include/linux/netdevice.h */ +#define alloc_netdev_mq(sizeof_priv, name, setup, queue) \ + alloc_netdev(sizeof_priv, name, setup) +#define NETIF_F_MULTI_QUEUE 0 + +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) */ + /* Compat work for 2.6.21, 2.6.22 and 2.6.23 */ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) |