Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279052
b: refs/heads/master
c: 9d4dde5
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and David S. Miller committed Dec 23, 2011
1 parent 2e06ab2 commit 4ccb24f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f87ce5b254d4eb5b5ec2bfcc78d714fa0e249288
refs/heads/master: 9d4dde5215779f4099730194ad30624fdba3d8b2
12 changes: 8 additions & 4 deletions trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,17 @@ struct sk_buff_head {

struct sk_buff;

/* 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.
/* To allow 64K frame to be packed as single skb without frag_list we
* require 64K/PAGE_SIZE pages plus 1 additional page to allow for
* buffers which do not start on a page boundary.
*
* Since GRO uses frags we allocate at least 16 regardless of page
* size.
*/
#if (65536/PAGE_SIZE + 2) < 16
#if (65536/PAGE_SIZE + 1) < 16
#define MAX_SKB_FRAGS 16UL
#else
#define MAX_SKB_FRAGS (65536/PAGE_SIZE + 2)
#define MAX_SKB_FRAGS (65536/PAGE_SIZE + 1)
#endif

typedef struct skb_frag_struct skb_frag_t;
Expand Down

0 comments on commit 4ccb24f

Please sign in to comment.