mbuf: Save 16 bytes from pkthdr on x86_64
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 17 Jun 2013 09:28:26 +0000 (17:28 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 17 Jun 2013 09:36:23 +0000 (17:36 +0800)
commitb4e5a1079d852748f03f32aae87ecdda27a538d2
tree216d17864c9e2eea6aaaf6c9ab4c0815300a4bcc
parentdf5c926fc385a9e1161fb6013e2d7dd8e32d0d39
mbuf: Save 16 bytes from pkthdr on x86_64

- 'wlan_seqno' is not necessary, reuse the 'ether_vlantag'
- Not all parts of 'pkthdr_br' is useful; save the ethernet source
  address should be enough.
- Move 'len' after 'header', on x86_64:
  o  Remove the implicit 4 bytes padding
  o  'len' is still in the same cacheline as before this commit
     (m_hdr is 160 bytes as of this commit)
  o  Make the size of the fields after 'header' but before the 'pf'
     8 bytes aligned, so there will be on implicit padding before 'pf'
sys/net/bridge/if_bridge.c
sys/netproto/802_11/ieee80211_dragonfly.h
sys/sys/mbuf.h