summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/netdevice.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-06-01 18:00:11 +0200
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-06-05 21:35:49 -0700
commit65034d5bb3c1e5c15f097f9f8bd981aa64025a70 (patch)
treea62d8ec49d5a0108f85d66fafc273219e112b433 /backport/backport-include/linux/netdevice.h
parentc952ad7b4a06f0e4f894afb739b2ecf738d31c57 (diff)
backports: do not backport netif_set_real_num_rx_queues() on RHEL 6.4
The in kernel version of netif_set_real_num_rx_queues() on RHEL 6.4 accesses some other struct members than our backported version. We should use that version instead. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'backport/backport-include/linux/netdevice.h')
-rw-r--r--backport/backport-include/linux/netdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h
index e405c6c1..aa1dcd69 100644
--- a/backport/backport-include/linux/netdevice.h
+++ b/backport/backport-include/linux/netdevice.h
@@ -233,6 +233,7 @@ static inline int register_netdevice_name(struct net_device *dev)
#define net_ns_type_operations LINUX_BACKPORT(net_ns_type_operations)
extern struct kobj_ns_type_operations net_ns_type_operations;
+#if (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(6,4))
#ifdef CONFIG_RPS
extern int netif_set_real_num_rx_queues(struct net_device *dev,
unsigned int rxq);
@@ -243,6 +244,7 @@ static inline int netif_set_real_num_rx_queues(struct net_device *dev,
return 0;
}
#endif
+#endif
#endif /* < 2.6.37 */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)