[PATCH 3/3] Fix GSO tx handling

Mark McLoughlin
2008-05-27T11:36:12Z

Use skb->h instead of skb->transport_header

skb->transport_header was introduced in 2.6.22

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
---
hack-module.awk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hack-module.awk b/hack-module.awk
index d04c3b6..a3275fa 100644
--- a/hack-module.awk
+++ b/hack-module.awk
@@ -139,7 +139,7 @@

/skb_transport_header/ {
print "#ifdef COMPAT_transport_header";
- print "BUG();";
+ print "\t\thdr->hdr_len = skb->h.raw - skb->data;";
print "#else";
need_endif = 1;
}
--
1.5.5.1