Add skb_add_rx_frag to backport.
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 12 Oct 2009 21:19:18 +0000 (23:19 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 13 Oct 2009 19:54:52 +0000 (12:54 -0700)
This is needed by iwl-3945.c.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
compat/compat-2.6.28.c
compat/compat-2.6.28.h

index 33871a224b235881dc36fac396548ea579a24911..c379b19e01bd7e9f6a08aa2c035b26631eee8e59 100644 (file)
@@ -275,4 +275,14 @@ unsigned long round_jiffies_up(unsigned long j)
 }
 EXPORT_SYMBOL_GPL(round_jiffies_up);
 
+void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off,
+               int size)
+{
+       skb_fill_page_desc(skb, i, page, off, size);
+       skb->len += size;
+       skb->data_len += size;
+       skb->truesize += size;
+}
+EXPORT_SYMBOL(skb_add_rx_frag);
+
 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) */
index dd223c6771f309e95a5b9629975472b19d22c17f..f158cbefc2201ffd825dde1a36ec460ea532e49b 100644 (file)
@@ -178,6 +178,9 @@ static inline void skb_queue_splice_tail_init(struct sk_buff_head *list,
 
 unsigned long round_jiffies_up(unsigned long j);
 
+extern void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page,
+                           int off, int size);
+
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)) */
 
 #endif /* LINUX_26_28_COMPAT_H */