1 #include <linux/module.h>
2 #include <linux/netdevice.h>
3 #include <linux/skbuff.h>
5 #if !defined(HAVE_SKB_WARN_LRO) && defined(NETIF_F_LRO)
7 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
9 void __skb_warn_lro_forwarding(const struct sk_buff *skb)
12 pr_warn("%s: received packets cannot be forwarded while LRO is enabled\n",
18 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
19 int skb_checksum_help(struct sk_buff *skb, int inward)
21 int skb_checksum_help(struct sk_buff *skb)
24 if (unlikely(skb_is_nonlinear(skb))) {
27 err = __skb_linearize(skb);
32 #undef skb_checksum_help
33 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
34 return skb_checksum_help(skb, 0);
36 return skb_checksum_help(skb);