Dor Laor
2008-Mar-05 16:27 UTC
[PATCH 3/3] Backport skb_transport_header as a BUG.. 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 <dor.laor at qumranet.com> --- external-module-compat.h | 1 + hack-module.awk | 7 +++++++ 2 files changed, 8 insertions(+), 0 deletions(-) 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 } -- 1.5.4.1 --=-GX8nzkmESIKGfVphMk3E--
Seemingly Similar Threads
- [PATCH 1/3] Backward compat to replace napi in *rx_schedule*
- [PATCH 2/3] Move COMPAT_csum_offset to kernels < .24 Also add #else for initializing the virtio_net_hdr
- [PATCH 1/3] Cleanup and simplify virtnet header
- [PATCH 1/3] Cleanup and simplify virtnet header
- [PATCH 1/3] skb_partial_csum_set