From: Pravin B Shelar <pshe...@nicira.com>

Following patch fixes compilation error on older kernel.

This is a crossport of commit 08d19ca9fef29b23826f1fb52e2368a9077783ca
from master.

Signed-off-by: Pravin B Shelar <pshe...@nicira.com>
Acked-by: Jesse Gross <je...@nicira.com>
---
 datapath/linux/compat/include/net/checksum.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/datapath/linux/compat/include/net/checksum.h 
b/datapath/linux/compat/include/net/checksum.h
index ee64f24..502d02d 100644
--- a/datapath/linux/compat/include/net/checksum.h
+++ b/datapath/linux/compat/include/net/checksum.h
@@ -38,4 +38,8 @@ static inline void csum_replace2(__sum16 *sum, __be16 from, 
__be16 to)
                                           (__force __be32)(to), pseudohdr)
 #endif
 
+#ifndef CSUM_MANGLED_0
+#define CSUM_MANGLED_0 ((__force __sum16)0xffff)
+#endif
+
 #endif /* checksum.h */
-- 
1.7.2.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to