From a180abcf994197aab2e96cb42f2e95d87dcacb5e Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Sun, 27 Mar 2011 14:57:26 +0000 Subject: [PATCH] --- yaml --- r: 243253 b: refs/heads/master c: a715dea3c8e9ef2771c534e05ee1d36f65987e64 h: refs/heads/master i: 243251: 35cfa1d0fb1ed64464bc86c2f459c0db9bccc0ad v: v3 --- [refs] | 2 +- trunk/include/linux/skbuff.h | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 76bc70927e4d..5c277a53c832 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4910ac6c526d2868adcb5893e0c428473de862b5 +refs/heads/master: a715dea3c8e9ef2771c534e05ee1d36f65987e64 diff --git a/trunk/include/linux/skbuff.h b/trunk/include/linux/skbuff.h index 24cfa626931e..239083bfea13 100644 --- a/trunk/include/linux/skbuff.h +++ b/trunk/include/linux/skbuff.h @@ -122,8 +122,14 @@ struct sk_buff_head { struct sk_buff; -/* To allow 64K frame to be packed as single skb without frag_list */ +/* To allow 64K frame to be packed as single skb without frag_list. Since + * GRO uses frags we allocate at least 16 regardless of page size. + */ +#if (65536/PAGE_SIZE + 2) < 16 +#define MAX_SKB_FRAGS 16 +#else #define MAX_SKB_FRAGS (65536/PAGE_SIZE + 2) +#endif typedef struct skb_frag_struct skb_frag_t;