This is needed by atlx, atl1c and atl1e.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38))
#include <linux/kernel.h>
+#include <linux/skbuff.h>
/*
* This is not part of The 2.6.37 kernel yet but we
#define pr_warn pr_warning
+static inline int skb_checksum_start_offset(const struct sk_buff *skb)
+{
+ return skb->csum_start - skb_headroom(skb);
+}
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)) */
#endif /* LINUX_26_38_COMPAT_H */