Commit 39e8d3e1 authored by David S. Miller's avatar David S. Miller

[NET]: Decrease skb->cb[] to 40 bytes.

No control block usage, even on 64-bit, needs
the full current 48 bytes.  This brings sk_buff
size down to 256 bytes on 64-bit platforms and
fixes some performance regressions due to the
addition of the input_dev member.
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 423c8e23
...@@ -233,7 +233,7 @@ struct sk_buff { ...@@ -233,7 +233,7 @@ struct sk_buff {
* want to keep them across layers you have to do a skb_clone() * want to keep them across layers you have to do a skb_clone()
* first. This is owned by whoever has the skb queued ATM. * first. This is owned by whoever has the skb queued ATM.
*/ */
char cb[48]; char cb[40];
unsigned int len, unsigned int len,
data_len, data_len,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment