backports: igb fixes for linux-3.8
authorStefan Assmann <sassmann@kpanic.de>
Wed, 29 Jan 2014 09:19:01 +0000 (10:19 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 31 Jan 2014 21:36:53 +0000 (22:36 +0100)
- add missing NETDEV_FRAG defines

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/skbuff.h

index 43d33ca6cff7aaef0936365ce370a2d0c58c9851..7d04b542bbc8cc1527ed357b1ccff717c412f581 100644 (file)
@@ -224,4 +224,13 @@ static inline void skb_queue_splice_tail(const struct sk_buff_head *list,
                     skb = skb->next)
 #endif /* < 2.6.28 */
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)
+#ifndef NETDEV_FRAG_PAGE_MAX_ORDER
+#define NETDEV_FRAG_PAGE_MAX_ORDER get_order(32768)
+#endif
+#ifndef NETDEV_FRAG_PAGE_MAX_SIZE
+#define NETDEV_FRAG_PAGE_MAX_SIZE  (PAGE_SIZE << NETDEV_FRAG_PAGE_MAX_ORDER)
+#endif
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0) */
+
 #endif /* __BACKPORT_SKBUFF_H */