Author: marek Date: 2010-08-20 21:16:02 +0200 (Fri, 20 Aug 2010) New Revision: 1770
Modified: trunk/batman-adv/compat.h Log: batman-adv: Provide skb_cow_head on kernels prior 2.6.23
skb_cow_head was first introduced in v2.6.23-rc6-155-gd9cc204 and we must use skb_cow on those kernel which will also copy the skb when it shares data with other skbs and not only when the header is only shared.
Signed-off-by: Sven Eckelmann sven.eckelmann@gmx.de
Modified: trunk/batman-adv/compat.h =================================================================== --- trunk/batman-adv/compat.h 2010-08-20 19:16:00 UTC (rev 1769) +++ trunk/batman-adv/compat.h 2010-08-20 19:16:02 UTC (rev 1770) @@ -70,6 +70,11 @@ return 0; }
+static inline int skb_cow_head(struct sk_buff *skb, unsigned int headroom) +{ + return skb_cow(skb, headroom); +} + #define cancel_delayed_work_sync(wq) cancel_delayed_work(wq)
#endif /* < KERNEL_VERSION(2, 6, 23) */