History

net: Increase the size of skb_frag_t

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.

Matthew Wilcox (Oracle) committed 7 years ago

Commit b6567221 parent d8e18a51 file · +0 −5Browse files

Unified · Split

include/linux/skbuff.h+0−5
@@ -314,13 +314,8 @@ struct skb_frag_struct { · 313 unmodified lines
314314 struct {
315315 struct page *p;
316316 } page;
317−#if (BITS_PER_LONG > 32) || (PAGE_SIZE >= 65536)
318317 __u32 page_offset;
319318 __u32 size;
320−#else
321− __u16 page_offset;
322− __u16 size;
323−#endif
324319 };
325320
326321 /**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t