diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2012-01-27 01:22:53 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-02-10 18:57:47 -0500 |
commit | 4031ae6edb92f7e0aade76357813211ae0520a5c (patch) | |
tree | 1c8112798b23ce79e5e936e357b7c508a153aef9 /include/linux/skbuff.h | |
parent | 8a0da21be84019d605af2c9a92b20a084db77de1 (diff) |
skbuff: Move rxhash and vlan_tci to consolidate holes in sk_buff
This change helps to reduce the overall size of the sk_buff by moving
rxhash and vlan_tci so that the u16 values and u8 bitfields can be better
combined to create only one hole instead of multiple.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 50db9b04a552..2b7317ff297f 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -438,6 +438,11 @@ struct sk_buff { | |||
438 | #endif | 438 | #endif |
439 | 439 | ||
440 | int skb_iif; | 440 | int skb_iif; |
441 | |||
442 | __u32 rxhash; | ||
443 | |||
444 | __u16 vlan_tci; | ||
445 | |||
441 | #ifdef CONFIG_NET_SCHED | 446 | #ifdef CONFIG_NET_SCHED |
442 | __u16 tc_index; /* traffic control index */ | 447 | __u16 tc_index; /* traffic control index */ |
443 | #ifdef CONFIG_NET_CLS_ACT | 448 | #ifdef CONFIG_NET_CLS_ACT |
@@ -445,8 +450,6 @@ struct sk_buff { | |||
445 | #endif | 450 | #endif |
446 | #endif | 451 | #endif |
447 | 452 | ||
448 | __u32 rxhash; | ||
449 | |||
450 | __u16 queue_mapping; | 453 | __u16 queue_mapping; |
451 | kmemcheck_bitfield_begin(flags2); | 454 | kmemcheck_bitfield_begin(flags2); |
452 | #ifdef CONFIG_IPV6_NDISC_NODETYPE | 455 | #ifdef CONFIG_IPV6_NDISC_NODETYPE |
@@ -470,8 +473,6 @@ struct sk_buff { | |||
470 | __u32 dropcount; | 473 | __u32 dropcount; |
471 | }; | 474 | }; |
472 | 475 | ||
473 | __u16 vlan_tci; | ||
474 | |||
475 | sk_buff_data_t transport_header; | 476 | sk_buff_data_t transport_header; |
476 | sk_buff_data_t network_header; | 477 | sk_buff_data_t network_header; |
477 | sk_buff_data_t mac_header; | 478 | sk_buff_data_t mac_header; |