diff options
-rw-r--r-- | backport/backport-include/linux/netdevice.h | 2 | ||||
-rw-r--r-- | backport/compat/compat-2.6.35.c | 2 |
2 files changed, 4 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) diff --git a/backport/compat/compat-2.6.35.c b/backport/compat/compat-2.6.35.c index cd556d35..f6e2672f 100644 --- a/backport/compat/compat-2.6.35.c +++ b/backport/compat/compat-2.6.35.c @@ -17,6 +17,7 @@ #include <linux/uaccess.h> #include <net/sch_generic.h> +#if (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(6,4)) #ifdef CONFIG_RPS int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq) { @@ -29,6 +30,7 @@ int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq) return 0; } #endif +#endif /* * Routine to help set real_num_tx_queues. To avoid skbs mapped to queues |