From: Dor Laor <[EMAIL PROTECTED]>

Since kvm host side does not support GSO anyway the simplest/fastest thing
is to backport the relative new skb_transport_header as BUG.

Signed-off-by: Dor Laor <[EMAIL PROTECTED]>
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/external-module-compat.h b/external-module-compat.h
index 9c93464..ff2f4ca 100644
--- a/external-module-compat.h
+++ b/external-module-compat.h
@@ -79,6 +79,7 @@ do {                                                  \
 #define COMPAT_INIT_WORK
 #define COMPAT_f_dentry
 #define COMPAT_net_stats
+#define COMPAT_transport_header
 
 #define __maybe_unused
 
diff --git a/hack-module.awk b/hack-module.awk
index 41ba60d..9e7ef0e 100644
--- a/hack-module.awk
+++ b/hack-module.awk
@@ -113,6 +113,13 @@
     need_endif_indent_brace = 1;
 }
 
+/skb_transport_header/ {
+    print "#ifdef COMPAT_transport_header";
+    print "BUG();";
+    print "#else";
+    need_endif = 1;
+}
+
 { sub(/\<pci_dev->revision\>/, "pci_dev_revision(pci_dev)") }
 
 { print }

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to