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

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/skbuff.h+0−5
@@ -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/**

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