batman-adv add compat code for consume_skb

Message ID 1392625772-1860-1-git-send-email-antonio@meshcoding.com (mailing list archive)
State Accepted, archived
Commit 15fb0fab51a3695738f65dfaab045e979fc89dce
Headers

Commit Message

Antonio Quartulli Feb. 17, 2014, 8:29 a.m. UTC
  consume_skb() has been implemented in 2.6.30, therefore some
some compat code is needed for 2.6.29. This patch adds it.

Introduced by 9289542085d7e298b90c7b6fb6efb509dab69d8b
("batman-adv: free skb on TVLV parsing success")

Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
---
 compat.h | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Marek Lindner Feb. 20, 2014, 10:56 a.m. UTC | #1
On Monday 17 February 2014 09:29:32 Antonio Quartulli wrote:
> consume_skb() has been implemented in 2.6.30, therefore some
> some compat code is needed for 2.6.29. This patch adds it.
> 
> Introduced by 9289542085d7e298b90c7b6fb6efb509dab69d8b
> ("batman-adv: free skb on TVLV parsing success")
> 
> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
> ---
>  compat.h | 2 ++
>  1 file changed, 2 insertions(+)

Applied in revision 15fb0fa.

Thanks,
Marek
  

Patch

diff --git a/compat.h b/compat.h
index deea92b..94407a6 100644
--- a/compat.h
+++ b/compat.h
@@ -26,6 +26,8 @@ 
 
 #include <linux/version.h>	/* LINUX_VERSION_CODE */
 
+#define consume_skb(_skb) kfree_skb(_skb)
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
 
 #undef __alloc_percpu