dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kni: compatibility with RHEL 7
@ 2014-06-12  8:09 Hiroshi Shimamoto
       [not found] ` <7F861DC0615E0C47A872E6F3C5FCDDBD0110E674-ZmjkEB1lVlLt6d3pZDjeaEtBU8KWyXPq@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Hiroshi Shimamoto @ 2014-06-12  8:09 UTC (permalink / raw)
  To: dev-VfR2kkLFssw@public.gmane.org; +Cc: Hayato Momma

From: Hiroshi Shimamoto <h-shimamoto-ehU+Cx/zZe18UrSeD/g0lQ@public.gmane.org>

Compilation in RHEL7 is failed. This fixes the build issue.

RHEL7 has skb_set_hash, the kernel version is 3.10 though.
Don't define skb_set_hash for RHEL7.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto-ehU+Cx/zZe18UrSeD/g0lQ@public.gmane.org>
Reviewed-by: Hayato Momma <h-momma-JhyGz2TFV9J8UrSeD/g0lQ@public.gmane.org>
---
 lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h b/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h
index 4c27d5d..b4de6e2 100644
--- a/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h
+++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h
@@ -3843,6 +3843,9 @@ static inline struct sk_buff *__kc__vlan_hwaccel_put_tag(struct sk_buff *skb,
 #endif /* >= 3.10.0 */
 
 #if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0) )
+
+#if (!(RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,0)))
+
 #ifdef NETIF_F_RXHASH
 #define PKT_HASH_TYPE_L3 0
 static inline void
@@ -3851,6 +3854,8 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type)
 	skb->rxhash = hash;
 }
 #endif /* NETIF_F_RXHASH */
+#endif /* < RHEL7 */
+
 #endif /* < 3.14.0 */
 
 #endif /* _KCOMPAT_H_ */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-07-01 22:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-12  8:09 [PATCH] kni: compatibility with RHEL 7 Hiroshi Shimamoto
     [not found] ` <7F861DC0615E0C47A872E6F3C5FCDDBD0110E674-ZmjkEB1lVlLt6d3pZDjeaEtBU8KWyXPq@public.gmane.org>
2014-06-12  9:18   ` Cao, Waterman
     [not found]     ` <AA3F441F262C58498CD6D0C1801DE7EB0AAA586C-0J0gbvR4kTggGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-06-12  9:35       ` Hiroshi Shimamoto
     [not found]         ` <7F861DC0615E0C47A872E6F3C5FCDDBD0110EB24-ZmjkEB1lVlLt6d3pZDjeaEtBU8KWyXPq@public.gmane.org>
2014-06-25 10:05           ` Thomas Monjalon
2014-06-25 13:39             ` Cao, Waterman
2014-06-26 11:22             ` Cao, Waterman
     [not found]               ` <AA3F441F262C58498CD6D0C1801DE7EB0AAB81B4-0J0gbvR4kTggGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-06-26 11:38                 ` Hiroshi Shimamoto
     [not found]                   ` <7F861DC0615E0C47A872E6F3C5FCDDBD0112D36C-ZmjkEB1lVlLt6d3pZDjeaEtBU8KWyXPq@public.gmane.org>
2014-06-30  4:45                     ` Hiroshi Shimamoto
     [not found]                       ` <7F861DC0615E0C47A872E6F3C5FCDDBD01133D9C-ZmjkEB1lVlLt6d3pZDjeaEtBU8KWyXPq@public.gmane.org>
2014-06-30  6:40                         ` Cao, Waterman
2014-06-30  8:36             ` Cao, Waterman
     [not found]               ` <AA3F441F262C58498CD6D0C1801DE7EB0AABAC2D-0J0gbvR4kTggGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-06-30  8:43                 ` Thomas Monjalon
2014-07-01 22:03   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).