summaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2011-06-16 15:14:08 -0700
committerJesse Gross <jesse@nicira.com>2011-06-16 17:03:29 -0700
commit82d6256ac9f800f8cbe06cf2be41a7b76ab8b322 (patch)
treea939cd09e8a47d874d6bf6e460f5b62990c86915 /datapath
parent5ff660c69619505fbcec5041a13493f32d6f014d (diff)
downloadopenvswitch-82d6256ac9f800f8cbe06cf2be41a7b76ab8b322.tar.gz
datapath: Backport consume_skb().
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>
Diffstat (limited to 'datapath')
-rw-r--r--datapath/linux-2.6/compat-2.6/include/linux/skbuff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h b/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h
index 9cd7e1d5d..b728c5179 100644
--- a/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h
+++ b/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h
@@ -228,4 +228,8 @@ static inline bool skb_warn_if_lro(const struct sk_buff *skb)
#endif /* NETIF_F_LRO */
#endif /* HAVE_SKB_WARN_LRO */
+#ifndef HAVE_CONSUME_SKB
+#define consume_skb kfree_skb
+#endif
+
#endif