From 82d6256ac9f800f8cbe06cf2be41a7b76ab8b322 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Thu, 16 Jun 2011 15:14:08 -0700 Subject: 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 Acked-by: Ben Pfaff --- datapath/linux-2.6/compat-2.6/include/linux/skbuff.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'datapath') 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 -- cgit v1.2.1