Skip to contentSkip to conversation

batman-adv add compat code for consume_skb

PATCH Applied Antonio Quartulli 2 participants 2 messages Feb 17, 2014 – Feb 20, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv add compat code for consume_skb

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")

---
 compat.h | 2 ++
 1 file changed, 2 insertions(+)
compat.h +2 -0
index deea92b..94407a6 100644
@@ -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
Signature · 1 line
1.8.5.3
#1 lore raw
Quoted 10 lines · 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")

---
 compat.h | 2 ++
 1 file changed, 2 insertions(+)

Applied in revision 15fb0fa.

Thanks,
Marek