To increase commonality between block and net, we are going to replace the skb_frag_t with the bio_vec. This patch increases the size of skb_frag_t on 32-bit machines from 8 bytes to 12 bytes. The size is unchanged on 64-bit machines.
Unified · Split
| @@ -314,13 +314,8 @@ struct skb_frag_struct { · 313 unmodified lines | |||
| 314 | struct { | 314 | struct { |
| 315 | struct page *p; | 315 | struct page *p; |
| 316 | } page; | 316 | } page; |
| 317 | #if (BITS_PER_LONG > 32) || (PAGE_SIZE >= 65536) | ||
| 318 | __u32 page_offset; | 317 | __u32 page_offset; |
| 319 | __u32 size; | 318 | __u32 size; |
| 320 | #else | ||
| 321 | __u16 page_offset; | ||
| 322 | __u16 size; | ||
| 323 | #endif | ||
| 324 | }; | 319 | }; |
| 325 | 320 | ||
| 326 | /** | 321 | /** |