Kernels before 2.6.30 did not implement consume_skb() although RHEL
backports it. For other kernels, this provides a backport.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
[OVS_DEFINE([HAVE_ICMP6_HDR])])
OVS_GREP_IFELSE([$KSRC26/include/linux/skbuff.h], [skb_warn_if_lro],
[OVS_DEFINE([HAVE_SKB_WARN_LRO])])
+ OVS_GREP_IFELSE([$KSRC26/include/linux/skbuff.h], [consume_skb])
OVS_GREP_IFELSE([$KSRC26/include/linux/string.h], [kmemdup], [],
[OVS_GREP_IFELSE([$KSRC26/include/linux/slab.h], [kmemdup])])
#endif /* NETIF_F_LRO */
#endif /* HAVE_SKB_WARN_LRO */
+#ifndef HAVE_CONSUME_SKB
+#define consume_skb kfree_skb
+#endif
+
#endif