From 0fc4a0bdbab4cd55df02b12a18cc9681606d4a5e Mon Sep 17 00:00:00 2001 From: Flavio Fernandes Date: Wed, 26 Nov 2014 13:56:39 -0500 Subject: [PATCH] modify vr_compat.h to compile on centos 6.5 and later Closes-BUG: #1444953 Change-Id: Ibf124cf46cf4b07b073494707ee4d0c63da2bed3 --- include/vr_compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vr_compat.h b/include/vr_compat.h index 998b55f93..cd480fedb 100644 --- a/include/vr_compat.h +++ b/include/vr_compat.h @@ -9,7 +9,7 @@ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)) #if (! (defined(RHEL_MAJOR) && defined(RHEL_MINOR) && \ - (RHEL_MAJOR == 6) && (RHEL_MINOR == 5))) + (RHEL_MAJOR == 6) && (RHEL_MINOR >= 5))) typedef u64 netdev_features_t; #endif #endif @@ -139,7 +139,7 @@ static inline void skb_reset_mac_len(struct sk_buff *skb) #ifndef ISRHOSKERNEL #if (! (defined(RHEL_MAJOR) && defined(RHEL_MINOR) && \ - (RHEL_MAJOR == 6) && (RHEL_MINOR == 5))) + (RHEL_MAJOR == 6) && (RHEL_MINOR >= 5))) static bool can_checksum_protocol(netdev_features_t features, __be16 protocol) { return ((features & NETIF_F_GEN_CSUM) ||