aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2013-02-08 05:17:15 -0500
committerDavid S. Miller <davem@davemloft.net>2013-02-08 17:33:35 -0500
commite5e67305885eb12849b5475764b0542f03dc2b59 (patch)
treebeff2a5540f816b58213da8af6275f7be81a86a7 /include
parentbfb235d78387c4fd38e296ed7bd9a4f2b0a5b2b9 (diff)
skbuff: Move definition of NETDEV_FRAG_PAGE_MAX_SIZE
In order to address the fact that some devices cannot support the full 32K frag size we need to have the value accessible somewhere so that we can use it to do comparisons against what the device can support. As such I am moving the values out of skbuff.c and into skbuff.h. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/skbuff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 0259b719bebf..d7573c37a51d 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1832,6 +1832,10 @@ static inline void __skb_queue_purge(struct sk_buff_head *list)
1832 kfree_skb(skb); 1832 kfree_skb(skb);
1833} 1833}
1834 1834
1835#define NETDEV_FRAG_PAGE_MAX_ORDER get_order(32768)
1836#define NETDEV_FRAG_PAGE_MAX_SIZE (PAGE_SIZE << NETDEV_FRAG_PAGE_MAX_ORDER)
1837#define NETDEV_PAGECNT_MAX_BIAS NETDEV_FRAG_PAGE_MAX_SIZE
1838
1835extern void *netdev_alloc_frag(unsigned int fragsz); 1839extern void *netdev_alloc_frag(unsigned int fragsz);
1836 1840
1837extern struct sk_buff *__netdev_alloc_skb(struct net_device *dev, 1841extern struct sk_buff *__netdev_alloc_skb(struct net_device *dev,