mbox series

[ovs-dev,00/13] Rearrange structure members for memory efficiency.

Message ID 1504893565-110166-1-git-send-email-bhanuprakash.bodireddy@intel.com
Headers show
Series Rearrange structure members for memory efficiency. | expand

Message

Bodireddy, Bhanuprakash Sept. 8, 2017, 5:59 p.m. UTC
This is a simple patch series that reorders members in some structures
to reduce/remove holes and pad bytes, thus saving memory footprint.
This series doesn't change any functionality and care has been taken not
to disturb the grouping of related members variables in structures.

Please note that no performance impact is observed with the new ordering.

Bhanuprakash Bodireddy (13):
  bond: Reorder elements in bond_slave structure.
  netdev-dummy: Reorder elements in dummy_packet_stream structure.
  tun-metadata: Reorder elements in tun_meta_entry structure.
  ct-dpif: Reorder elements in ct_dpif_entry structure.
  netdev: Reorder elements in netdev_tunnel_config structure.
  netdev-provider: Reorder element in netdev_flow_dump structure.
  netdev-provider: Reorder elements in netdev structure.
  dpif-netdev: Reorder elements in dp_netdev_rxq structure.
  dpif: Reorder elements in dpif_flow_put structure.
  ofproto: Reorder elements in ofproto_ipfix_flow_exporter_options
    structure.
  ofproto: Reorder elements in ofproto_bundle_settings structure.
  conntrack: Fix dead assignment reported by clang.
  ofproto-dpif-xlate: Fix dead assignment reported by clang.

 lib/conntrack.c              |  5 ++---
 lib/ct-dpif.h                |  5 +++--
 lib/dpif-netdev.c            |  2 +-
 lib/dpif.h                   |  2 +-
 lib/netdev-dummy.c           |  2 +-
 lib/netdev-provider.h        | 13 +++++++------
 lib/netdev.h                 |  4 ++--
 lib/tun-metadata.c           |  2 +-
 ofproto/bond.c               |  4 ++--
 ofproto/ofproto-dpif-xlate.c |  1 -
 ofproto/ofproto.h            |  7 +++----
 11 files changed, 23 insertions(+), 24 deletions(-)