[ovs-dev] [1.4 backports 2/6] datapath: Move CSUM_MANGLED_0 definition to net checksum header.

Ben Pfaff blp at nicira.com
Wed Oct 24 19:47:38 UTC 2012


From: Pravin B Shelar <pshelar at 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 <pshelar at nicira.com>
Acked-by: Jesse Gross <jesse at 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




More information about the dev mailing list